RailsCasts
Ryan Bates
Add to My Podcasts
Episodes
About
Reviews
Charts
Promote
#23 Counter Cache Column
7 minutes
Posted Apr 25, 2007 at 12:00 am.
0:00
7:18
Add to My Queue
Download
MP3
Share
episode
Share at current time
Show notes
If you need to display the record count for a has_many association, you can improve performance by caching that number in a column.
Watch Video
Previous
#22 Eager Loading
Next
#24 The Stack Trace
← See all 346 episodes of RailsCasts
Privacy Manager