Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

counter_cache in separate table

#6737

Hi,
It's not a problem, but possible feature request :)

is there any ability to work with counter_cache in separate table? Let me explain. I have following models - User, UserStatistics, Posts, Comments - everything standard for some blog. But i'd like to separate comments_count and posts_count from User and move to UserStatistics - on each create/destroy Post or Comment i'd like to update UserStatistics table.

Is there any standard way to do that?

Reported by Alexey Poimtsev · April 23rd, 2011 @ 12:30 AM

State: new
Milestone: none
Assigned to: nobody
Importance: none

Activity

No comments yet.