The find() method has a :include option to preload its children. However, when I do something like this: Article.find(:all, :include => [comments, :user]) The above call returns all the columns of both ''user'' and ''comments'', and all of the article''s comments objects. I''d like to optimize it so that it only returns comments.count and the field user.name in a single find call with :include. Can that be done? Thanks. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---