← The Grounds Rails & Ruby ActiveRecord's conveniences come with hidden queries, silent pool leaks, and counter cache contention that surfaces only at scale. I have documented each pattern — and each remedy.
1 Rails PostgreSQL Performance: ActiveRecord Optimization Patterns 2 ActiveRecord Callbacks Are Tripling Your PostgreSQL Query Count 3 ActiveRecord Without Rails: Managing PostgreSQL Connections in Sinatra, Grape, and Standalone Ruby 4 Polymorphic Associations in Rails + PostgreSQL: Fixing Slow Queries Without the Full Refactor 5 Rails counter_cache at Scale: When Row Contention Kills Your PostgreSQL Write Throughput 6 ActionText's Hidden PostgreSQL Performance Tax: TOAST Bloat, N+1 Queries, and the Table That Grows Forever 7 Turbo Stream Broadcasts Are a PostgreSQL Query Multiplier: How One Write Becomes 100 Queries 8 Solid Queue on PostgreSQL: Tuning FOR UPDATE SKIP LOCKED 9 Rails Read Replica Routing on PostgreSQL: Replication Lag, Stale Reads, and the Pool Surprise 10 Zero-Downtime Rails Migrations on PostgreSQL: Why strong_migrations Alone Isn't Enough 11 Sequel ORM and PostgreSQL: The Performance-First Alternative Your Ruby Application Deserves 12 Hanami 2 and PostgreSQL: A Performance Guide for ROM Relations 13 The Ruby pg Gem: Async Queries, Fiber Scheduling, and Connection Pooling Without an ORM