I have a model hierarchy that looks like: User has many days, a day has many items. I''m trying to collect cheap (processing) statistics about the items, specifically on the count of duplicates. Ultimately I want to know if an item is such that it is included in many days, and further more to know the rank of top items in the system. Currently I have a Count function that determines how many times an Item is found, but it''s expensive to execute when it''s run for thousands of items. Any ideas? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---