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 #1

Updated by Tomer Brisker over 8 years ago

Actions #2

Updated by Tom Caspy over 8 years ago

don't. counter culture never ever works... specially when you have complex stuff like we do

Actions #3

Updated by Dominic Cleal over 8 years ago

  • Related to Bug #7246: Remove counter workaround for #5692 on upgrade to rails 4.x added
Actions #4

Updated by Dominic Cleal almost 8 years ago

  • Status changed from New to Rejected

Cached counters were removed entirely in #12193, so this ticket is no longer applicable.

Actions

Also available in: Atom PDF