Skip to content
railsengines.com

Counter

count things, either as a one-off or aggregated over time

No ratings yet
Gem
counter
Repository
podia/counter
License
MIT
Stars
30
Added
August 12, 2026

About

count things, either as a one-off or aggregated over time

By the time you need Rails counter_caches you probably have other needs too. You probably want to sum column values, have conditional counters, and you probably have enough throughput that updating a single column value will cause lock contention problems.

What you get

  • Counter
  • Usage
  • Installation
  • Main concepts
  • Basic usage
  • Define a counter
  • Access counter values

Installing it

ruby
# Gemfile
gem "counter"

Details

30 stars on GitHub · MIT licensed · maintained by podia. Source: https://github.com/podia/counter

Discussion (0)

Sign in to join the discussion.

No comments yet.