Forum: Ruby on Rails counter caching with acts_as_commentable

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
5e75f4b81923cd04a5c8fffa290be92e?d=identicon&s=25 Carl Johnson (carlivar)
on 2007-02-20 22:00
I find that my app is doing a lot of db queries to get comment counts
for various objects, as I reference these counts frequenly in my views.
This is using acts_as_commentable. Anyone have any tips for adding
counter caching to acts_as_commentable? I assume this is possible with
polymorphic associations?

This topic is locked and can not be replied to.