[Rails] Re: :joins VS :include => different results?
On Jun 2, 5:09 pm, Tom Ha <li...@ruby-forum.com> wrote:
> Question: Is it correct that:
> - in case A), the books containing pages WITHOUT any illustrations will
> NOT show up in the results
> - whereas in case B), these books WILL show up?
>
> (Personally, I thought that the main difference between :joins and
> :include was the "eager loading" part.)
>
:joins does an inner join, :include doesn't (and may not even do a
join at all)
Fred
> Thanks for any explanation for this!
> Tom
> --
> Posted viahttp://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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home