<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: counter_cache as an optimization step</title>
	<atom:link href="http://futureadapter.com/2009/10/01/counter_cache-as-an-optimization-step/feed/" rel="self" type="application/rss+xml" />
	<link>http://futureadapter.com/2009/10/01/counter_cache-as-an-optimization-step/</link>
	<description>Cool Tech</description>
	<lastBuildDate>Tue, 03 Nov 2009 11:48:54 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: mattenat</title>
		<link>http://futureadapter.com/2009/10/01/counter_cache-as-an-optimization-step/comment-page-1/#comment-55</link>
		<dc:creator>mattenat</dc:creator>
		<pubDate>Wed, 07 Oct 2009 18:29:07 +0000</pubDate>
		<guid isPermaLink="false">http://futureadapter.com/?p=257#comment-55</guid>
		<description>Thanks Rain.  Updated the code in the post, accordingly!</description>
		<content:encoded><![CDATA[<p>Thanks Rain.  Updated the code in the post, accordingly!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rain</title>
		<link>http://futureadapter.com/2009/10/01/counter_cache-as-an-optimization-step/comment-page-1/#comment-54</link>
		<dc:creator>Rain</dc:creator>
		<pubDate>Tue, 06 Oct 2009 09:40:50 +0000</pubDate>
		<guid isPermaLink="false">http://futureadapter.com/?p=257#comment-54</guid>
		<description>You forgot the scenario about destroying images, it will not update the counter unless you set 
has_many :images_tags, :dependent =&gt; :destroy in Image model

but it will require ImagesTag model has a primary key, so you have to add a primary key for it in the migration script.</description>
		<content:encoded><![CDATA[<p>You forgot the scenario about destroying images, it will not update the counter unless you set<br />
has_many :images_tags, :dependent =&gt; :destroy in Image model</p>
<p>but it will require ImagesTag model has a primary key, so you have to add a primary key for it in the migration script.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://futureadapter.com/2009/10/01/counter_cache-as-an-optimization-step/comment-page-1/#comment-53</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Thu, 01 Oct 2009 21:10:36 +0000</pubDate>
		<guid isPermaLink="false">http://futureadapter.com/?p=257#comment-53</guid>
		<description>It&#039;s even older than that: it&#039;s on page 361 of the 2d edition Agile Web Development from PragProg, which makes it pre-Rails 1.2.3 IIRC.

That book is totally worth a skim cover-to-cover so you can have many of those &quot;don&#039;t I remember that one thing ...&quot; moments. It won&#039;t replace keeping up with Edge Rails (or just reading the code you&#039;re using ;), but it&#039;s a good backup.</description>
		<content:encoded><![CDATA[<p>It&#8217;s even older than that: it&#8217;s on page 361 of the 2d edition Agile Web Development from PragProg, which makes it pre-Rails 1.2.3 IIRC.</p>
<p>That book is totally worth a skim cover-to-cover so you can have many of those &#8220;don&#8217;t I remember that one thing &#8230;&#8221; moments. It won&#8217;t replace keeping up with Edge Rails (or just reading the code you&#8217;re using ;), but it&#8217;s a good backup.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

