<?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: Iteration over large data sets in Rails</title>
	<atom:link href="http://www.cherpec.com/2009/07/iteration-over-large-data-sets-in-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cherpec.com/2009/07/iteration-over-large-data-sets-in-rails/</link>
	<description>linux + ruby on rails = love</description>
	<lastBuildDate>Fri, 09 Sep 2011 03:54:28 +0300</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Vitalie Cherpec</title>
		<link>http://www.cherpec.com/2009/07/iteration-over-large-data-sets-in-rails/comment-page-1/#comment-224</link>
		<dc:creator>Vitalie Cherpec</dc:creator>
		<pubDate>Wed, 02 Sep 2009 14:02:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.cherpec.com/?p=348#comment-224</guid>
		<description>Great. I&#039;ve missed &quot;find_in_batches&quot; function. The code it&#039;s much cleaner now. :)

Thank you, &lt;a href=&quot;http://mitchellhashimoto.com/&quot; rel=&quot;nofollow&quot;&gt;Mitchell&lt;/a&gt;!</description>
		<content:encoded><![CDATA[<p>Great. I&#8217;ve missed &#8220;find_in_batches&#8221; function. The code it&#8217;s much cleaner now. <img src='http://www.cherpec.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thank you, <a href="http://mitchellhashimoto.com/" rel="nofollow">Mitchell</a>!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mitchell Hashimoto</title>
		<link>http://www.cherpec.com/2009/07/iteration-over-large-data-sets-in-rails/comment-page-1/#comment-223</link>
		<dc:creator>Mitchell Hashimoto</dc:creator>
		<pubDate>Mon, 31 Aug 2009 09:10:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.cherpec.com/?p=348#comment-223</guid>
		<description>Hey Vitalie,

Great post but a better solution would be to use the ActiveRecord batching methods. For example, your solution 4 could more easily be done like this:

Book.find_in_batches(:batch_size =&gt; 100) do &#124;results&#124;
  # Do something with results
end

(or view http://gist.github.com/178369)</description>
		<content:encoded><![CDATA[<p>Hey Vitalie,</p>
<p>Great post but a better solution would be to use the ActiveRecord batching methods. For example, your solution 4 could more easily be done like this:</p>
<p>Book.find_in_batches(:batch_size =&gt; 100) do |results|<br />
  # Do something with results<br />
end</p>
<p>(or view <a href="http://gist.github.com/178369)" rel="nofollow">http://gist.github.com/178369)</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

