Project

General

Profile

Actions

Refactor #12485

closed

Consider replacing Rails counter_cache with counter_culture gem

Added by Tomer Brisker over 8 years ago. Updated almost 8 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Database
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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)


Related issues 2 (0 open2 closed)

Related to Foreman - Bug #7246: Remove counter workaround for #5692 on upgrade to rails 4.xRejected08/25/2014Actions
Blocked by Foreman - Feature #7230: Upgrade Ruby on Rails to 4.1ClosedDaniel Lobato Garcia08/22/2014Actions
Actions

Also available in: Atom PDF