<?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: TriPUG and MySQL Talk on Memcache and PHP</title>
	<atom:link href="http://www.davidrasch.com/2007/05/03/tripug-and-mysql-post-on-memcache-and-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.davidrasch.com/2007/05/03/tripug-and-mysql-post-on-memcache-and-php/</link>
	<description></description>
	<pubDate>Fri, 21 Nov 2008 19:05:37 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: vin</title>
		<link>http://www.davidrasch.com/2007/05/03/tripug-and-mysql-post-on-memcache-and-php/#comment-18235</link>
		<dc:creator>vin</dc:creator>
		<pubDate>Thu, 10 Jul 2008 05:17:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidrasch.com/2007/05/03/tripug-and-mysql-post-on-memcache-and-php/#comment-18235</guid>
		<description>ok ive had my nose buried in memcached for the past few days and im starting to get it going..   so far i see how it saves db load by sparing reads, but is writing to the db from memcached data a common practice as well?  or is there some more efficient way of handling write-intensive operations?</description>
		<content:encoded><![CDATA[<p>ok ive had my nose buried in memcached for the past few days and im starting to get it going..   so far i see how it saves db load by sparing reads, but is writing to the db from memcached data a common practice as well?  or is there some more efficient way of handling write-intensive operations?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: drasch</title>
		<link>http://www.davidrasch.com/2007/05/03/tripug-and-mysql-post-on-memcache-and-php/#comment-18107</link>
		<dc:creator>drasch</dc:creator>
		<pubDate>Sat, 05 Jul 2008 18:03:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidrasch.com/2007/05/03/tripug-and-mysql-post-on-memcache-and-php/#comment-18107</guid>
		<description>Great observation, and you've identified an opportunity for further optimization.  However, getting the individual posts is a pretty "cheap" sql operation (since you already have the primary keys), so you'll see most of the performance gain from the data that gets cached to show the most recent post ids.  

This is obviously a simplistic example to demonstrate good performance, but the point applies across the board.  You should actually profile your application and see where the most impact can be made with caching.  Three things to look at in your profile data are: what're the operations that take the most time each time they're run, what operations are run the most often, and what operations consumed the most time overall.  Each of these may offer up opportunities for optimization.  You'll often find some things at the slow end of each of these that can make enormous impact.</description>
		<content:encoded><![CDATA[<p>Great observation, and you&#8217;ve identified an opportunity for further optimization.  However, getting the individual posts is a pretty &#8220;cheap&#8221; sql operation (since you already have the primary keys), so you&#8217;ll see most of the performance gain from the data that gets cached to show the most recent post ids.  </p>
<p>This is obviously a simplistic example to demonstrate good performance, but the point applies across the board.  You should actually profile your application and see where the most impact can be made with caching.  Three things to look at in your profile data are: what&#8217;re the operations that take the most time each time they&#8217;re run, what operations are run the most often, and what operations consumed the most time overall.  Each of these may offer up opportunities for optimization.  You&#8217;ll often find some things at the slow end of each of these that can make enormous impact.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vin</title>
		<link>http://www.davidrasch.com/2007/05/03/tripug-and-mysql-post-on-memcache-and-php/#comment-18105</link>
		<dc:creator>vin</dc:creator>
		<pubDate>Sat, 05 Jul 2008 17:54:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidrasch.com/2007/05/03/tripug-and-mysql-post-on-memcache-and-php/#comment-18105</guid>
		<description>this is great..   pardon my ignorance (not a coder), but a question:  in the get_recent_posts() function, would/should an 'else' separate the 'cache miss' conditional from the mysql_query?  otherwise wouldnt it always get the db data vs the memcached data?  thanks again :)</description>
		<content:encoded><![CDATA[<p>this is great..   pardon my ignorance (not a coder), but a question:  in the get_recent_posts() function, would/should an &#8216;else&#8217; separate the &#8216;cache miss&#8217; conditional from the mysql_query?  otherwise wouldnt it always get the db data vs the memcached data?  thanks again :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: drasch</title>
		<link>http://www.davidrasch.com/2007/05/03/tripug-and-mysql-post-on-memcache-and-php/#comment-18077</link>
		<dc:creator>drasch</dc:creator>
		<pubDate>Fri, 04 Jul 2008 14:47:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidrasch.com/2007/05/03/tripug-and-mysql-post-on-memcache-and-php/#comment-18077</guid>
		<description>yay, found it!  the link should be working again.</description>
		<content:encoded><![CDATA[<p>yay, found it!  the link should be working again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: drasch</title>
		<link>http://www.davidrasch.com/2007/05/03/tripug-and-mysql-post-on-memcache-and-php/#comment-18076</link>
		<dc:creator>drasch</dc:creator>
		<pubDate>Fri, 04 Jul 2008 14:40:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidrasch.com/2007/05/03/tripug-and-mysql-post-on-memcache-and-php/#comment-18076</guid>
		<description>This seems to be misplaced in some "upgrade".  I'll see if I can locate it and get it back online.  Thanks.</description>
		<content:encoded><![CDATA[<p>This seems to be misplaced in some &#8220;upgrade&#8221;.  I&#8217;ll see if I can locate it and get it back online.  Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vin</title>
		<link>http://www.davidrasch.com/2007/05/03/tripug-and-mysql-post-on-memcache-and-php/#comment-18068</link>
		<dc:creator>vin</dc:creator>
		<pubDate>Fri, 04 Jul 2008 05:23:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidrasch.com/2007/05/03/tripug-and-mysql-post-on-memcache-and-php/#comment-18068</guid>
		<description>hi, are the files/talk still available?  links arent working..  thanks :)</description>
		<content:encoded><![CDATA[<p>hi, are the files/talk still available?  links arent working..  thanks :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
