The pluck is like the only way of getting raw data from bw w/o any ORM 
object creations. 
So it might be worth explaining what exactly you are trying to achieve so 
that someone could hint towards a more suitable method to use...

On Monday, September 12, 2016 at 9:24:34 AM UTC+3, Kwasi Mensah wrote:
>
> I'm looking into using pluck at the end of a query that might have a fair 
> amount of results and was surprised ActiveRecord::Calculations::pluck 
> didn't return a relation. This means I can't use find_each to try to be 
> smart about how much data is in memory at a time.
>
> Is there a reasoning behind this or is it just not supported yet? I quick 
> glance of the source doesn't seem like relations are requred to only hold 
> ActiveRecord objects.
>
> Kwasi
> ActiveRecord::CalculationsActiveRecord::Calculations
>

-- 
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/41b7cb64-7f37-4104-bb02-518c031ac94d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to