Actions
Refactor #12485
closedConsider replacing Rails counter_cache with counter_culture gem
Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Database
Target version:
-
Description
counter_culture provides more powerful cached counters and better deadlock handling then Rails counter_cache.
We should consider migrating all our counters to use it.
I recommend this be considered if needed after changing to rails 4.x which does a slightly better job of handling counters.
The reason not to do so right away is that this introduces a fairly complex gem as dependency, which is not very actively developed, and might lead to other issues then the ones we are currently facing (deadlocks, creating complex counting logic for some counters)
Updated by Tomer Brisker about 9 years ago
- Blocked by Feature #7230: Upgrade Ruby on Rails to 4.1 added
Updated by Tom Caspy about 9 years ago
don't. counter culture never ever works... specially when you have complex stuff like we do
Updated by Dominic Cleal about 9 years ago
- Related to Bug #7246: Remove counter workaround for #5692 on upgrade to rails 4.x added
Updated by Dominic Cleal over 8 years ago
- Status changed from New to Rejected
Cached counters were removed entirely in #12193, so this ticket is no longer applicable.
Actions