title: How do you do eager loading with limits?
body: <p>In the documentation for eager loading it is stated that:</p>
  
  <hr>
  
  <p><em>If you eager load an association with a specified :limit option, it will be ignored, returning all the associated objects:</em></p>
  
  <pre><code>class Picture &lt; ActiveRecord::Base
    has_many :most_recent_comments, :class_name =&gt; 'Comment', 
                                    :order =&gt; 'id DESC', :limit =&gt; 10
  end
  </code></pre>
  
  <p>Picture.find(:first, :include => :most_recent_comments).most_recent_comments # => returns all associated comments.</p>
  
  <hr>
  
  <p>If this is the case then what is the best way to achieve the "limit" on the loading? </p>
  
  <p>Let's say we're eager loading the last 10 blog posts onto the front page of a blog, we clearly don't want them all so should the limit and ordering of the post collection be specified?</p>
  
  <p>Further to that, can one specify the same conditions on elements that are deep loaded - for instance only show the first three comments on each blog post?</p>
  
  <pre><code>Blog.find(:blog_id, :include =&gt; {:posts =&gt; :comments } )
  </code></pre>