Inside ActiveRecord's Query Cache: When It Helps, When It Hurts
A few months ago, I was debugging a memory issue in a Sidekiq worker that processed CSV exports. The job was straightforward: iterate through a few hundred thousand records, transform them, and write to a file. Memory usage should have been stable...