On Sun, Jun 15, 2014 at 9:46 PM, Ronald Fischer <[email protected]> wrote:

> May I ask how this works (internally)? For pluck() to be applied, Ruby
> has first to execute box.cards() to get an Array of the cards. Unless
> the Card objects are implemented as proxies, which only fetch their data
> from the database if one asks for it, I would at this point, at least
> temporarily, have all the selected Card data in memory, isn't it?

No. You can watch the queries generated for confirmation. Or look
at the source. Or both. :-)

-- 
Hassan Schroeder ------------------------ [email protected]
http://about.me/hassanschroeder
twitter: @hassan

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yCgxV4_sDE26kfKr8N42NGbLkYY%3DKzNxc9%2BWB1rhHwSXg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to