<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: MySQL Query Cache</title>
	<atom:link href="http://www.mysqlperformanceblog.com/2006/07/27/mysql-query-cache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlperformanceblog.com/2006/07/27/mysql-query-cache/</link>
	<description>Everything about MySQL Performance</description>
	<pubDate>Fri, 04 Jul 2008 15:15:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Aijaz</title>
		<link>http://www.mysqlperformanceblog.com/2006/07/27/mysql-query-cache/#comment-322017</link>
		<dc:creator>Aijaz</dc:creator>
		<pubDate>Thu, 03 Jul 2008 06:31:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/07/27/mysql-query-cache/#comment-322017</guid>
		<description>I have created a table which has 1 lakh of records but the problem is ..when m trying to perform a Query on this table ... it consists of 3-4 tables joins ... so it takes around 7-8 mins to fetch the data ... Then i tried to Built Index on few columns.... But when we Explain that Query ... thn also it shows ALL instead of the index type of any</description>
		<content:encoded><![CDATA[<p>I have created a table which has 1 lakh of records but the problem is ..when m trying to perform a Query on this table &#8230; it consists of 3-4 tables joins &#8230; so it takes around 7-8 mins to fetch the data &#8230; Then i tried to Built Index on few columns&#8230;. But when we Explain that Query &#8230; thn also it shows ALL instead of the index type of any</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2006/07/27/mysql-query-cache/#comment-297238</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Sun, 11 May 2008 06:40:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/07/27/mysql-query-cache/#comment-297238</guid>
		<description>nawab,

Typically people would use either memcache or query cache.  Invalidation is important part of being transparent - if you do not invalidate you get stale data from cache so it is not transparent for application any more - application needs to be aware it is getting the stale data.  And what if it needs the most recent one ? 

Using memcache or other cache explicitly allows control over how invalidation works.</description>
		<content:encoded><![CDATA[<p>nawab,</p>
<p>Typically people would use either memcache or query cache.  Invalidation is important part of being transparent - if you do not invalidate you get stale data from cache so it is not transparent for application any more - application needs to be aware it is getting the stale data.  And what if it needs the most recent one ? </p>
<p>Using memcache or other cache explicitly allows control over how invalidation works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nawab</title>
		<link>http://www.mysqlperformanceblog.com/2006/07/27/mysql-query-cache/#comment-297180</link>
		<dc:creator>nawab</dc:creator>
		<pubDate>Sat, 10 May 2008 16:25:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/07/27/mysql-query-cache/#comment-297180</guid>
		<description>thanks for the informative article.

i would like to know if there is some transparent query cache available for mysql that is not ACID safe. something to work with high update scenario, the cache is NOT dropped with every table change. memcached is one option, but it is not transparent, i.e., i need to modify in application every place where an expensive mysql query is being done. i would rather prefer a transparent way, e.g., something implemented as a wrapper over JDBC classes with local in-memory caching. or a set of APIs that first query the memcached/JCS/EHCache and if nothing is found, query the MySQL database.

thanks</description>
		<content:encoded><![CDATA[<p>thanks for the informative article.</p>
<p>i would like to know if there is some transparent query cache available for mysql that is not ACID safe. something to work with high update scenario, the cache is NOT dropped with every table change. memcached is one option, but it is not transparent, i.e., i need to modify in application every place where an expensive mysql query is being done. i would rather prefer a transparent way, e.g., something implemented as a wrapper over JDBC classes with local in-memory caching. or a set of APIs that first query the memcached/JCS/EHCache and if nothing is found, query the MySQL database.</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MySQL Query Cache WhiteSpace and comments &#124; MySQL Performance Blog</title>
		<link>http://www.mysqlperformanceblog.com/2006/07/27/mysql-query-cache/#comment-254924</link>
		<dc:creator>MySQL Query Cache WhiteSpace and comments &#124; MySQL Performance Blog</dc:creator>
		<pubDate>Thu, 20 Mar 2008 17:56:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/07/27/mysql-query-cache/#comment-254924</guid>
		<description>[...] on my previous post on MySQL Query Cache Gerry pokes me as I'm all wrong and both comments and whitespace are fixed in [...]</description>
		<content:encoded><![CDATA[<p>[...] on my previous post on MySQL Query Cache Gerry pokes me as I&#8217;m all wrong and both comments and whitespace are fixed in [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gerry</title>
		<link>http://www.mysqlperformanceblog.com/2006/07/27/mysql-query-cache/#comment-254833</link>
		<dc:creator>Gerry</dc:creator>
		<pubDate>Thu, 20 Mar 2008 08:27:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/07/27/mysql-query-cache/#comment-254833</guid>
		<description>"AFAIR but comments are not"

Hmmmm... as far as you remember.... but from where? Where would you have got this information?

The second link I provided says that the comments/space issue was fixed in MySQL 5</description>
		<content:encoded><![CDATA[<p>&#8220;AFAIR but comments are not&#8221;</p>
<p>Hmmmm&#8230; as far as you remember&#8230;. but from where? Where would you have got this information?</p>
<p>The second link I provided says that the comments/space issue was fixed in MySQL 5</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2006/07/27/mysql-query-cache/#comment-244690</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Tue, 19 Feb 2008 18:31:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/07/27/mysql-query-cache/#comment-244690</guid>
		<description>Gerry,

At the point this article was written (about 1.5 years ago) the prepared statements did not work with query cache. Even now they are only supported in  MySQL 5.1 which is still not production release.   

The problem with spaces was indeed partially fixed.  Basic whitespace is fixed AFAIR but comments are not.</description>
		<content:encoded><![CDATA[<p>Gerry,</p>
<p>At the point this article was written (about 1.5 years ago) the prepared statements did not work with query cache. Even now they are only supported in  MySQL 5.1 which is still not production release.   </p>
<p>The problem with spaces was indeed partially fixed.  Basic whitespace is fixed AFAIR but comments are not.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gerry</title>
		<link>http://www.mysqlperformanceblog.com/2006/07/27/mysql-query-cache/#comment-244616</link>
		<dc:creator>Gerry</dc:creator>
		<pubDate>Tue, 19 Feb 2008 06:47:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/07/27/mysql-query-cache/#comment-244616</guid>
		<description>Some of the information in this blog entry is out of date and thus incorrect:

ie.

&#62; "Avoid comment (and space) in the start of the query - Query Cache does simple optimization to check if query can be cached. As I mentioned only SELECT queries are cached - so it looks at first letter of the query and if it is “S” it proceeds with query lookup in cache if not - skips it."

I just wasted a couple of hours on this one only to realise that the statement was incorrect and based on a bug which has long since been fixed.

Other things in this article are wrong too. For instance some prepared statements will in fact work. Check the manual for more accurate info on what will and won't work.

And the Pro MySqL book that I have always documents issues such as this, but does not mention this problem and the same goes for the MySQL manual. I would have preferred if the author had specified where he was getting his info so I didn't have to waste so much time looking into this.

This guy tested it:
http://www.petefreitag.com/item/390.cfm

This documents that the bug only exists in older 4.0 version of MySQL:
http://books.google.com/books?id=iaCCQ13_zMIC&#38;pg=PA80&#38;lpg=PA80&#38;dq=white+space+query+cache&#38;source=web&#38;ots=3ED_193Hn1&#38;sig=Ctiy3T5zxWyJHuKnqBtHxuofm3Q</description>
		<content:encoded><![CDATA[<p>Some of the information in this blog entry is out of date and thus incorrect:</p>
<p>ie.</p>
<p>&gt; &#8220;Avoid comment (and space) in the start of the query - Query Cache does simple optimization to check if query can be cached. As I mentioned only SELECT queries are cached - so it looks at first letter of the query and if it is “S” it proceeds with query lookup in cache if not - skips it.&#8221;</p>
<p>I just wasted a couple of hours on this one only to realise that the statement was incorrect and based on a bug which has long since been fixed.</p>
<p>Other things in this article are wrong too. For instance some prepared statements will in fact work. Check the manual for more accurate info on what will and won&#8217;t work.</p>
<p>And the Pro MySqL book that I have always documents issues such as this, but does not mention this problem and the same goes for the MySQL manual. I would have preferred if the author had specified where he was getting his info so I didn&#8217;t have to waste so much time looking into this.</p>
<p>This guy tested it:<br />
<a href="http://www.petefreitag.com/item/390.cfm" rel="nofollow">http://www.petefreitag.com/item/390.cfm</a></p>
<p>This documents that the bug only exists in older 4.0 version of MySQL:<br />
<a href="http://books.google.com/books?id=iaCCQ13_zMIC&amp;pg=PA80&amp;lpg=PA80&amp;dq=white+space+query+cache&amp;source=web&amp;ots=3ED_193Hn1&amp;sig=Ctiy3T5zxWyJHuKnqBtHxuofm3Q" rel="nofollow">http://books.google.com/books?id=iaCCQ13_zMIC&amp;pg=PA80&amp;lpg=PA80&amp;dq=white+space+query+cache&amp;source=web&amp;ots=3ED_193Hn1&amp;sig=Ctiy3T5zxWyJHuKnqBtHxuofm3Q</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ibuildings Blog</title>
		<link>http://www.mysqlperformanceblog.com/2006/07/27/mysql-query-cache/#comment-236062</link>
		<dc:creator>Ibuildings Blog</dc:creator>
		<pubDate>Wed, 30 Jan 2008 13:00:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/07/27/mysql-query-cache/#comment-236062</guid>
		<description>&lt;strong&gt;Different methods of caching&lt;/strong&gt;

Because we encounter PHP more and more in the enterprise market, the performance demands of websites we build are becoming ever more challenging. The usefulness of caching is often underestimated by developers (myself included). When using a lightweight f</description>
		<content:encoded><![CDATA[<p><strong>Different methods of caching</strong></p>
<p>Because we encounter PHP more and more in the enterprise market, the performance demands of websites we build are becoming ever more challenging. The usefulness of caching is often underestimated by developers (myself included). When using a lightweight f</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: McBOX &#187; Blog Archive &#187; Ways To Speed Up WordPress With Caching</title>
		<link>http://www.mysqlperformanceblog.com/2006/07/27/mysql-query-cache/#comment-225754</link>
		<dc:creator>McBOX &#187; Blog Archive &#187; Ways To Speed Up WordPress With Caching</dc:creator>
		<pubDate>Mon, 31 Dec 2007 00:00:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/07/27/mysql-query-cache/#comment-225754</guid>
		<description>[...] Since WordPress uses MySQL, almost every page load results in various MySQL queries for logins, post content, categories and so on. It is very likely that this data didn’t change since the last request so we begin with enabling the cache within the MySQL server. Basically, all you need to to is to activate it in the my.cnf (or my.ini) MySQL configuration file with setting the query-cache-type variable to 1. The query-cache-size variable is the size of the query cache in MB, for example 20M. To change the MySQL configuration file, you’ll probably need root access which won’t be available on shared hosts. More info about query cache is available on techiecorner.com and the MySQL Performance blog. [...]</description>
		<content:encoded><![CDATA[<p>[...] Since WordPress uses MySQL, almost every page load results in various MySQL queries for logins, post content, categories and so on. It is very likely that this data didn’t change since the last request so we begin with enabling the cache within the MySQL server. Basically, all you need to to is to activate it in the my.cnf (or my.ini) MySQL configuration file with setting the query-cache-type variable to 1. The query-cache-size variable is the size of the query cache in MB, for example 20M. To change the MySQL configuration file, you’ll probably need root access which won’t be available on shared hosts. More info about query cache is available on techiecorner.com and the MySQL Performance blog. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: &#187; MySQL query cache &#124; PageTracer &#124; Webmasters mashup</title>
		<link>http://www.mysqlperformanceblog.com/2006/07/27/mysql-query-cache/#comment-214935</link>
		<dc:creator>&#187; MySQL query cache &#124; PageTracer &#124; Webmasters mashup</dc:creator>
		<pubDate>Sun, 09 Dec 2007 12:50:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/07/27/mysql-query-cache/#comment-214935</guid>
		<description>[...] Here you can find the great post about other limitations of the MySQL query cache and MySQL query cache efficiency. [...]</description>
		<content:encoded><![CDATA[<p>[...] Here you can find the great post about other limitations of the MySQL query cache and MySQL query cache efficiency. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
