I have a set of results that I want to find some average values, divided
into group_1, _2, and _3. I have two options.

1) Find all and then loop through all and in each loop calculate how
many there are and the summery for each and get the average for each.

2) Use the calculation method Model.average() 3 times.

Which one is fastest? And what happens when there are more groups?
-- 
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to