Gold Lapel
How it works
Integrations
The Study
The Book Get Started
← 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 Patterns2 ActiveRecord Callbacks Are Tripling Your PostgreSQL Query Count3 ActiveRecord Without Rails: Managing PostgreSQL Connections in Sinatra, Grape, and Standalone Ruby4 Polymorphic Associations in Rails + PostgreSQL: Fixing Slow Queries Without the Full Refactor5 Rails counter_cache at Scale: When Row Contention Kills Your PostgreSQL Write Throughput6 ActionText's Hidden PostgreSQL Performance Tax: TOAST Bloat, N+1 Queries, and the Table That Grows Forever7 Turbo Stream Broadcasts Are a PostgreSQL Query Multiplier: How One Write Becomes 100 Queries8 Solid Queue on PostgreSQL: Tuning FOR UPDATE SKIP LOCKED9 Rails Read Replica Routing on PostgreSQL: Replication Lag, Stale Reads, and the Pool Surprise10 Zero-Downtime Rails Migrations on PostgreSQL: Why strong_migrations Alone Isn't Enough11 Sequel ORM and PostgreSQL: The Performance-First Alternative Your Ruby Application Deserves12 Hanami 2 and PostgreSQL: A Performance Guide for ROM Relations13 The Ruby pg Gem: Async Queries, Fiber Scheduling, and Connection Pooling Without an ORM
Gold Lapel © 2026 Gold Lapel
The Waiter's correspondence
Company About Press thewaiter@goldlapel.com
Legal Terms Privacy