search for: couter_cach

Displaying 2 results from an estimated 2 matches for "couter_cach".

Did you mean: couter_cache
2006 Apr 12
0
counter_cache and updates
...a different Client). If I change the profile to a new client, I can get the right profiles_count on the NEW client, but the OLD client is not updated (to reflect one fewer profile) Anyone have any suggestion? I''ve been surprised at how little information I''ve found about using couter_cache. Any good, thorough tutorials out there? Thanks, Eric -- View this message in context: http://www.nabble.com/counter_cache-and-updates-t1435328.html#a3873241 Sent from the RubyOnRails Users forum at Nabble.com.
2008 Feb 02
1
eager include associated count?
So I know you can eager include associated rows with the :include, but is there a way to include just the associated count? User.find(:all, :select => ''id, first_name, last_name, created_at'', :limit => 30) I want to include user.store.count in the above query. Right now, this gives me an n+1 queries because i get the count for each row. <% for user in @users %>