<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.feedreader.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Feedreader.com - query performance - Comments</title>
 <link>http://www.feedreader.com/node/1290</link>
 <description>Comments for &quot;query performance&quot;</description>
 <language>en</language>
<item>
 <title>done that, thanks ingmar
i&#039;m</title>
 <link>http://www.feedreader.com/node/1290#comment-3938</link>
 <description>&lt;p&gt;done that, thanks ingmar&lt;/p&gt;
&lt;p&gt;i&#039;m really pleased with FR mySQLed now :-)&lt;/p&gt;
&lt;p&gt;this is just great, criteria: &quot;feedname contains&quot; is essential to me that&#039;s why i&#039;m so glad we fixed it and also why i have been asking for criteria &quot;not contain&quot; as well...almost all my smartfeeds contain &quot;feedname contains&quot;&lt;/p&gt;
&lt;p&gt;happy regards Vidar&lt;/p&gt;
</description>
 <pubDate>Thu, 24 Jan 2008 16:20:21 +0200</pubDate>
 <dc:creator>Vidar2</dc:creator>
 <guid isPermaLink="false">comment 3938 at http://www.feedreader.com</guid>
</item>
<item>
 <title>Greetings,
no no, everything</title>
 <link>http://www.feedreader.com/node/1290#comment-3937</link>
 <description>&lt;p&gt;Greetings,&lt;/p&gt;
&lt;p&gt;no no, everything is ok, I was explaining why this field is currently varchar&lt;br /&gt;
(1024). You can shorten this field, strange that performance is changed...to better way. You can also create index on this field, but you must use then &lt;/p&gt;
&lt;p&gt;CREATE INDEX feed_name ON feeds(title(255));&lt;/p&gt;
&lt;p&gt;Ingmar&lt;br /&gt;
------&lt;br /&gt;
FR dev&lt;/p&gt;
</description>
 <pubDate>Thu, 24 Jan 2008 16:04:11 +0200</pubDate>
 <dc:creator>ingmar</dc:creator>
 <guid isPermaLink="false">comment 3937 at http://www.feedreader.com</guid>
</item>
<item>
 <title>ingmar,
can you please</title>
 <link>http://www.feedreader.com/node/1290#comment-3936</link>
 <description>&lt;p&gt;ingmar,&lt;/p&gt;
&lt;p&gt;can you please explain again ? something not good with this change ? no happy ? :-)&lt;br /&gt;
thanks&lt;/p&gt;
&lt;p&gt;//vidar&lt;/p&gt;
</description>
 <pubDate>Thu, 24 Jan 2008 15:17:58 +0200</pubDate>
 <dc:creator>Vidar2</dc:creator>
 <guid isPermaLink="false">comment 3936 at http://www.feedreader.com</guid>
</item>
<item>
 <title>Greetings,
don&#039;t forget,</title>
 <link>http://www.feedreader.com/node/1290#comment-3935</link>
 <description>&lt;p&gt;Greetings,&lt;/p&gt;
&lt;p&gt;don&#039;t forget, that FR is using UTF8. If title is 512 and one UTF8 char can be also 3 chars, then actual size is 170 char.&lt;/p&gt;
&lt;p&gt;Also Feeds-&amp;gt;Title has no index, reason most simple, it&#039;s not commonly used. Do save dataspace no index is added for this field.&lt;/p&gt;
&lt;p&gt;Ingmar&lt;br /&gt;
------&lt;br /&gt;
FR dev&lt;/p&gt;
</description>
 <pubDate>Thu, 24 Jan 2008 14:41:47 +0200</pubDate>
 <dc:creator>ingmar</dc:creator>
 <guid isPermaLink="false">comment 3935 at http://www.feedreader.com</guid>
</item>
<item>
 <title>seems to be fixed :-)
i</title>
 <link>http://www.feedreader.com/node/1290#comment-3934</link>
 <description>&lt;p&gt;seems to be fixed :-)&lt;/p&gt;
&lt;p&gt;i changed title in tbl_feeds from varchar(1024) -&amp;gt; (512)&lt;/p&gt;
&lt;p&gt;and it&#039;s a huge difference when having smartfeeds with feedname contain&lt;/p&gt;
&lt;p&gt;i will do some more testing&lt;/p&gt;
&lt;p&gt;;-) Vidar&lt;/p&gt;
</description>
 <pubDate>Thu, 24 Jan 2008 14:17:10 +0200</pubDate>
 <dc:creator>Vidar2</dc:creator>
 <guid isPermaLink="false">comment 3934 at http://www.feedreader.com</guid>
</item>
<item>
 <title>i have to update firebird</title>
 <link>http://www.feedreader.com/node/1290#comment-3931</link>
 <description>&lt;p&gt;i have to update firebird db..so i will give you an update in a few days..&lt;/p&gt;
</description>
 <pubDate>Thu, 24 Jan 2008 00:09:42 +0200</pubDate>
 <dc:creator>Vidar2</dc:creator>
 <guid isPermaLink="false">comment 3931 at http://www.feedreader.com</guid>
</item>
<item>
 <title>Greetings,</title>
 <link>http://www.feedreader.com/node/1290#comment-3929</link>
 <description>&lt;p&gt;Greetings,&lt;/p&gt;
&lt;p&gt;this index &quot;was lost&quot; in porting progress. All other indexes are present, even on article title. Currently we are testing different row reading levels, with dirty read, no waiting is done...but it&#039;s not good choise. So we keep searching more tricks.&lt;/p&gt;
&lt;p&gt;With FB and requery, it depens quite a bit, how many feeds are currenlty updated. FB has quite strict row locking system.  And this can provide very different speeds when opening query&#039;s (if there is heavy load, feeds are updated).&lt;/p&gt;
&lt;p&gt;How much slower is MYSQL currently, compared to Firebird.If you click on feeds, how fast is MYSQL and Firebird.&lt;/p&gt;
&lt;p&gt;And also can you copy current innodb settings.&lt;/p&gt;
&lt;p&gt;Ingmar&lt;br /&gt;
------&lt;br /&gt;
FR dev&lt;/p&gt;
</description>
 <pubDate>Wed, 23 Jan 2008 22:14:00 +0200</pubDate>
 <dc:creator>ingmar</dc:creator>
 <guid isPermaLink="false">comment 3929 at http://www.feedreader.com</guid>
</item>
<item>
 <title>there was no index on</title>
 <link>http://www.feedreader.com/node/1290#comment-3920</link>
 <description>&lt;p&gt;there was no index on feed_id in tbl_articles so i added one...and it&#039;s mucho faster now...&lt;/p&gt;
&lt;p&gt;i still need to use the original settings (my.ini), otherwise computer go bezerk&lt;/p&gt;
&lt;p&gt;&quot;old&quot; FR is still faster so hopefully we can tweak mysqldb some more i will do some more testing and come back to you with result...but please advice me if you have some thoughts :-)  (for example index on title in tbl_feeds ?)&lt;/p&gt;
&lt;p&gt;regarding &quot;old&quot; FR, wich is deadly fast, but for some reason just stops responding (fetching 100 years) can there be something with REquery...it seems to me that this error happens when i look in a smartfeed and at the same time more articles are coming into the DB, FR wants to requery and requery and seems to loose it at that point...any ideas ? &lt;/p&gt;
&lt;p&gt;//vidar&lt;/p&gt;
</description>
 <pubDate>Wed, 23 Jan 2008 13:57:17 +0200</pubDate>
 <dc:creator>Vidar2</dc:creator>
 <guid isPermaLink="false">comment 3920 at http://www.feedreader.com</guid>
</item>
<item>
 <title>Greetings,</title>
 <link>http://www.feedreader.com/node/1290#comment-3904</link>
 <description>&lt;p&gt;Greetings,&lt;/p&gt;
&lt;p&gt;could you create following index in MYSQL  &lt;/p&gt;
&lt;p&gt;CREATE INDEX delIndx ON articles(deleted)&lt;/p&gt;
&lt;p&gt;this is common query in FR&lt;/p&gt;
&lt;p&gt;select a.title&lt;br /&gt;
from articles a,feeds f&lt;br /&gt;
where f.feed_id=178&lt;br /&gt;
  and a.feed_id=f.feed_id&lt;br /&gt;
  and a.deleted=0&lt;/p&gt;
&lt;p&gt;if you test performance, then use count for that...&lt;/p&gt;
&lt;p&gt;select count(a.id)&lt;br /&gt;
from articles a,feeds f&lt;br /&gt;
where f.feed_id=178&lt;br /&gt;
  and a.feed_id=f.feed_id&lt;br /&gt;
  and a.deleted=0&lt;/p&gt;
&lt;p&gt;Ingmar&lt;br /&gt;
------&lt;br /&gt;
FR dev&lt;/p&gt;
</description>
 <pubDate>Tue, 22 Jan 2008 20:52:36 +0200</pubDate>
 <dc:creator>ingmar</dc:creator>
 <guid isPermaLink="false">comment 3904 at http://www.feedreader.com</guid>
</item>
<item>
 <title>sorry no difference,
these</title>
 <link>http://www.feedreader.com/node/1290#comment-3899</link>
 <description>&lt;p&gt;sorry no difference,&lt;/p&gt;
&lt;p&gt;these are some figures:&lt;/p&gt;
&lt;p&gt;firebird db tbl_articles contains 93 291 records&lt;/p&gt;
&lt;p&gt;52 rows fetched (31&lt;strong&gt;ms&lt;/strong&gt;) using SQL manager 2005 lite for Firebird&lt;/p&gt;
&lt;p&gt;mysql db tbl_articles contains 135 365 records &lt;/p&gt;
&lt;p&gt;415 rows fetched in 11,982 &lt;strong&gt;seconds&lt;/strong&gt;&lt;br /&gt;
using Mysql query browser&lt;/p&gt;
&lt;p&gt;query&lt;/p&gt;
&lt;p&gt;SELECT * FROM feedreader.articles WHERE feed_id=&#039;2161&#039;&lt;/p&gt;
&lt;p&gt;maybe mysql does not like my computer :-(&lt;/p&gt;
</description>
 <pubDate>Tue, 22 Jan 2008 16:51:03 +0200</pubDate>
 <dc:creator>Vidar2</dc:creator>
 <guid isPermaLink="false">comment 3899 at http://www.feedreader.com</guid>
</item>
<item>
 <title>Greetings,
Tom has updated</title>
 <link>http://www.feedreader.com/node/1290#comment-3898</link>
 <description>&lt;p&gt;Greetings,&lt;/p&gt;
&lt;p&gt;Tom has updated again following debug feedreader.exe &lt;/p&gt;
&lt;p&gt;I belive, there is some index issues. MYSQL is quite fast database or is really  Firebird beaten MYSQL:)))&lt;/p&gt;
&lt;p&gt;Ingmar&lt;br /&gt;
------&lt;br /&gt;
FR dev&lt;/p&gt;
</description>
 <pubDate>Tue, 22 Jan 2008 16:04:20 +0200</pubDate>
 <dc:creator>ingmar</dc:creator>
 <guid isPermaLink="false">comment 3898 at http://www.feedreader.com</guid>
</item>
<item>
 <title>but i&#039;m not sure that</title>
 <link>http://www.feedreader.com/node/1290#comment-3896</link>
 <description>&lt;p&gt;but i&#039;m not sure that counting is the issue...&lt;/p&gt;
&lt;p&gt;if i just do some small tests (with original settings)&lt;/p&gt;
&lt;p&gt;a direct query in access against tbl_articles&lt;br /&gt;
with selection on feed_Id number&lt;/p&gt;
&lt;p&gt;the firebird is 50-&amp;gt;100 times faster than the sql&lt;/p&gt;
&lt;p&gt;//Vidar&lt;/p&gt;
</description>
 <pubDate>Tue, 22 Jan 2008 12:44:14 +0200</pubDate>
 <dc:creator>Vidar2</dc:creator>
 <guid isPermaLink="false">comment 3896 at http://www.feedreader.com</guid>
</item>
<item>
 <title>sorry but i receive a not</title>
 <link>http://www.feedreader.com/node/1290#comment-3895</link>
 <description>&lt;p&gt;sorry but i receive a not correct serial key mess when starting this exe&lt;/p&gt;
&lt;p&gt;//vidar&lt;/p&gt;
</description>
 <pubDate>Tue, 22 Jan 2008 12:15:42 +0200</pubDate>
 <dc:creator>Vidar2</dc:creator>
 <guid isPermaLink="false">comment 3895 at http://www.feedreader.com</guid>
</item>
<item>
 <title>Can you please take this</title>
 <link>http://www.feedreader.com/node/1290#comment-3894</link>
 <description>&lt;p&gt;Can you please take this file http://www.feedreader.com/files/feedreader.exe&lt;/p&gt;
&lt;p&gt;and replace your old mysql executable with this one. &lt;/p&gt;
&lt;p&gt;Now please do two things. First let FR run as usually and then copy from left lower corner the number that are coming out. You can copy 20 last ones or so. Number are created only if you have some feeds that have new items while updating. Basically this number is time in seconds to do refreshing of unreadcounts.&lt;/p&gt;
&lt;p&gt;Now if you have those numbers please add disableunreadcount=1 to feedreader.ini under [misc] section. Now unreadcounts are not updated (and you miss the correct unreadcount numbers) but at the same time performance may be gained. Can you comment on how your system works then unreadcounts are not updated.&lt;/p&gt;
&lt;p&gt;What comes to mysql configuration variables then even if you reverted from ingmar&#039;s configuration options you should still use &lt;/p&gt;
&lt;p&gt;innodb_flush_log_at_trx_commit = 0&lt;/p&gt;
&lt;p&gt;it takes down IO load.&lt;/p&gt;
&lt;p&gt;Greetings&lt;br /&gt;
Toomas&lt;/p&gt;
&lt;p&gt;Greetings&lt;br /&gt;
Toomas&lt;/p&gt;
</description>
 <pubDate>Tue, 22 Jan 2008 11:25:58 +0200</pubDate>
 <dc:creator>tom-admin</dc:creator>
 <guid isPermaLink="false">comment 3894 at http://www.feedreader.com</guid>
</item>
<item>
 <title>sorry, no difference</title>
 <link>http://www.feedreader.com/node/1290#comment-3862</link>
 <description>&lt;p&gt;sorry, no difference&lt;/p&gt;
</description>
 <pubDate>Fri, 18 Jan 2008 12:29:30 +0200</pubDate>
 <dc:creator>Vidar2</dc:creator>
 <guid isPermaLink="false">comment 3862 at http://www.feedreader.com</guid>
</item>
<item>
 <title>query performance</title>
 <link>http://www.feedreader.com/node/1290</link>
 <description>&lt;p&gt;greetings,&lt;/p&gt;
&lt;p&gt;i&#039;m not sure what to do or if something is wrong but...&lt;/p&gt;
&lt;p&gt;i tried ingmar&#039;s tip to change some settings in the my.ini file&lt;br /&gt;
i raised &quot;innodb_buffer_pool_size=&quot; to high (200) and the queries is much faster,&lt;br /&gt;
problem is CPU goes bezerk :-(&lt;/p&gt;
&lt;p&gt;so i went back to original settings, and CPU is neat again&lt;/p&gt;
&lt;p&gt;but the performance for some queries is not good...and sorry but it&#039;s hard to understand why &quot;old&quot; FR is faster than this one..&lt;/p&gt;
&lt;p&gt;everything is OK if i set Article age newer than 12 Hours...but if i raise that to 1 day the query takes &quot;forever&quot;&lt;/p&gt;
&lt;p&gt;this becomes very noticeable when i don&#039;t have any criteria...only a plain feed takes over 10 seconds !!! to fetch...of course i could set the 12 hour criteria on all smartfeeds but should that be necessary ? &lt;/p&gt;
&lt;p&gt;i hope you have any ideas :-)&lt;/p&gt;
&lt;p&gt;i&#039;m running a CPU 2,66 ghz with 2 GB RAM (i have no other apps running)&lt;br /&gt;
my db is containing +900 feeds and DB right now contains 80K articles&lt;/p&gt;
&lt;p&gt;regards Vidar&lt;/p&gt;
&lt;div class=&quot;forum-topic-navigation&quot;&gt;&lt;a href=&quot;/node/1291&quot; class=&quot;topic-previous&quot; title=&quot;Go to previous forum topic&quot;&gt;‹ edit smartfeed problem&lt;/a&gt; &lt;a href=&quot;/node/1333&quot; class=&quot;topic-next&quot; title=&quot;Go to next forum topic&quot;&gt;Wrong smartfeed read indicator. ›&lt;/a&gt;&lt;br class=&quot;clear&quot; /&gt;&lt;/div&gt;</description>
 <comments>http://www.feedreader.com/node/1290#comment</comments>
 <category domain="http://www.feedreader.com/taxonomy/term/17">MySQL Edition Bug Reports</category>
 <pubDate>Wed, 16 Jan 2008 14:50:30 +0200</pubDate>
 <dc:creator>Vidar2</dc:creator>
 <guid isPermaLink="false">1290 at http://www.feedreader.com</guid>
</item>
</channel>
</rss>
