<?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: Caching techinques</title>
	<atom:link href="http://www.mysqlperformanceblog.com/2006/08/08/caching-techinques/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlperformanceblog.com/2006/08/08/caching-techinques/</link>
	<description>Everything about MySQL Performance</description>
	<pubDate>Tue, 02 Dec 2008 14:29:59 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2006/08/08/caching-techinques/#comment-4923</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Wed, 11 Oct 2006 07:17:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/08/08/caching-techinques/#comment-4923</guid>
		<description>Marcus, 

This is in average some 5 connections/sec and 25 queries/sec, not much at all.   In your case load is very light  in terms of query numbers so this method should not cause large overhead.</description>
		<content:encoded><![CDATA[<p>Marcus, </p>
<p>This is in average some 5 connections/sec and 25 queries/sec, not much at all.   In your case load is very light  in terms of query numbers so this method should not cause large overhead.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Markus</title>
		<link>http://www.mysqlperformanceblog.com/2006/08/08/caching-techinques/#comment-4918</link>
		<dc:creator>Markus</dc:creator>
		<pubDate>Wed, 11 Oct 2006 00:19:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/08/08/caching-techinques/#comment-4918</guid>
		<description>We're using this locking method for a web application. To draw some numbers, at this moment, the server has been running for about 21 hours. There have been 414,322 connections that have executed 6,654,212 questions, being 1,952,321 of them selects. That's about 16 questions (around 5 selects) per connection average, but not all of them are cached. Maybe our experience may serve someone else out there. Cheers</description>
		<content:encoded><![CDATA[<p>We&#8217;re using this locking method for a web application. To draw some numbers, at this moment, the server has been running for about 21 hours. There have been 414,322 connections that have executed 6,654,212 questions, being 1,952,321 of them selects. That&#8217;s about 16 questions (around 5 selects) per connection average, but not all of them are cached. Maybe our experience may serve someone else out there. Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2006/08/08/caching-techinques/#comment-4821</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Sat, 07 Oct 2006 21:37:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/08/08/caching-techinques/#comment-4821</guid>
		<description>Markus, 

If you have single cache request per page you probably do not care, in this sense all listed techniques would work just fine. If you have many cache lookups it is however other story.  Ie 100 cache lookups would cause  100ms of just _overhead_  not to count cache access itself. 


So I do not think this approach is the most optimal but it will be good enough in many cases. 

If it delivers good enough performance in your case - use it :)</description>
		<content:encoded><![CDATA[<p>Markus, </p>
<p>If you have single cache request per page you probably do not care, in this sense all listed techniques would work just fine. If you have many cache lookups it is however other story.  Ie 100 cache lookups would cause  100ms of just _overhead_  not to count cache access itself. </p>
<p>So I do not think this approach is the most optimal but it will be good enough in many cases. </p>
<p>If it delivers good enough performance in your case - use it <img src='http://www.mysqlperformanceblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Markus</title>
		<link>http://www.mysqlperformanceblog.com/2006/08/08/caching-techinques/#comment-4817</link>
		<dc:creator>Markus</dc:creator>
		<pubDate>Sat, 07 Oct 2006 12:38:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/08/08/caching-techinques/#comment-4817</guid>
		<description>Peter, thanks for your feedback.

I made some tests and noticed just 1 millisecond or less overhead when using GET_LOCK/RELEASE_LOCK to queue accesses to cached files. The one thing that liked me of this approach is implementation was as easy as adding the requests to get and release the locks in the proper places and, in case of problems, they will be released as soon as each connection ends.

I would like to point out to this thread where I've been posting my thoughts in more depth:
http://area51.phpbb.com/phpBB/viewtopic.php?f=4&#38;t=25059

Cheers</description>
		<content:encoded><![CDATA[<p>Peter, thanks for your feedback.</p>
<p>I made some tests and noticed just 1 millisecond or less overhead when using GET_LOCK/RELEASE_LOCK to queue accesses to cached files. The one thing that liked me of this approach is implementation was as easy as adding the requests to get and release the locks in the proper places and, in case of problems, they will be released as soon as each connection ends.</p>
<p>I would like to point out to this thread where I&#8217;ve been posting my thoughts in more depth:<br />
<a href="http://area51.phpbb.com/phpBB/viewtopic.php?f=4&amp;t=25059" rel="nofollow">http://area51.phpbb.com/phpBB/viewtopic.php?f=4&amp;t=25059</a></p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2006/08/08/caching-techinques/#comment-2634</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Mon, 18 Sep 2006 19:45:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/08/08/caching-techinques/#comment-2634</guid>
		<description>Markus.   If you're working with files you probbably should do locking by file locks (assuming they work in your envinronment)  Or you can use shared memory semaphores if you're running inside single host.   Using GET_LOCK() will work but it is expensive - it is query to MySQL server which needs parsing etc.</description>
		<content:encoded><![CDATA[<p>Markus.   If you&#8217;re working with files you probbably should do locking by file locks (assuming they work in your envinronment)  Or you can use shared memory semaphores if you&#8217;re running inside single host.   Using GET_LOCK() will work but it is expensive - it is query to MySQL server which needs parsing etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Markus</title>
		<link>http://www.mysqlperformanceblog.com/2006/08/08/caching-techinques/#comment-2623</link>
		<dc:creator>Markus</dc:creator>
		<pubDate>Mon, 18 Sep 2006 07:24:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/08/08/caching-techinques/#comment-2623</guid>
		<description>I have implemented a similar caching method than the one described in Jay's blog. Our site is growing so I tried to do some things before getting to buy more hardware. I just noticed (in Jay's cache class) that reads to cached files aren't locked, so more than one concurrent process could try to execute the query and rebuild the cached file at the same time.

I was was thinking to lock  cache reads using MySQL function GET_LOCK. I'm wondering if such a thing really worths. Any advice?

Thanks a lot, this blog has been helping me a lot!</description>
		<content:encoded><![CDATA[<p>I have implemented a similar caching method than the one described in Jay&#8217;s blog. Our site is growing so I tried to do some things before getting to buy more hardware. I just noticed (in Jay&#8217;s cache class) that reads to cached files aren&#8217;t locked, so more than one concurrent process could try to execute the query and rebuild the cached file at the same time.</p>
<p>I was was thinking to lock  cache reads using MySQL function GET_LOCK. I&#8217;m wondering if such a thing really worths. Any advice?</p>
<p>Thanks a lot, this blog has been helping me a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seems appropriate&#8230; &#187; Dude, WTF?!</title>
		<link>http://www.mysqlperformanceblog.com/2006/08/08/caching-techinques/#comment-1771</link>
		<dc:creator>Seems appropriate&#8230; &#187; Dude, WTF?!</dc:creator>
		<pubDate>Mon, 14 Aug 2006 19:30:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/08/08/caching-techinques/#comment-1771</guid>
		<description>[...] MySQL Performance Blog [...]</description>
		<content:encoded><![CDATA[<p>[...] MySQL Performance Blog [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2006/08/08/caching-techinques/#comment-1579</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Tue, 08 Aug 2006 21:15:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/08/08/caching-techinques/#comment-1579</guid>
		<description>Apachez,

It is trackback from existing page which seems to be more or less valid this is why I leave it :)</description>
		<content:encoded><![CDATA[<p>Apachez,</p>
<p>It is trackback from existing page which seems to be more or less valid this is why I leave it <img src='http://www.mysqlperformanceblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Apachez</title>
		<link>http://www.mysqlperformanceblog.com/2006/08/08/caching-techinques/#comment-1578</link>
		<dc:creator>Apachez</dc:creator>
		<pubDate>Tue, 08 Aug 2006 21:09:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/08/08/caching-techinques/#comment-1578</guid>
		<description>Uhm, whats the point of above comment?

Looks like spam to me...</description>
		<content:encoded><![CDATA[<p>Uhm, whats the point of above comment?</p>
<p>Looks like spam to me&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sameer Maggon&#8217;s Web Log &#187; Blog Archive &#187; MySQL / PHP - Connection Management</title>
		<link>http://www.mysqlperformanceblog.com/2006/08/08/caching-techinques/#comment-1577</link>
		<dc:creator>Sameer Maggon&#8217;s Web Log &#187; Blog Archive &#187; MySQL / PHP - Connection Management</dc:creator>
		<pubDate>Tue, 08 Aug 2006 19:36:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/08/08/caching-techinques/#comment-1577</guid>
		<description>[...] The above article discusses two issues viz. Connection Management and Caching. It&#8217;s also worth looking at an article written by Peter Zaitsev who provides more details on Caching Techniques. [...]</description>
		<content:encoded><![CDATA[<p>[...] The above article discusses two issues viz. Connection Management and Caching. It&#8217;s also worth looking at an article written by Peter Zaitsev who provides more details on Caching Techniques. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
