Rails Under a Microscope: Diagnosing Slowness at the Byte Level
Performance
Ruby Optimization
Memory Management
Garbage Collection
Ruby
We realized our legacy code didn’t need a rewrite, it needed a performance plan.
This talk shares how we tackled real production issues like memory bloat, slow queries, and Sidekiq queues piling up under load, where simple fixes like batching jobs or tweaking retries didn’t help much.
We thought Active Record was the bottleneck, but fixing it only scratched the surface. We optimised query access patterns, chose more efficient data structures, restructured background jobs, and introduced smarter database caching and indexing strategies.
I’ll share how we analysed query plans, fine-tuned database performance, and replaced slow, fragile logic with leaner, more explicit code paths that scaled better and failed less while Rails stayed right at the center of it all.
This talk shares how we tackled real production issues like memory bloat, slow queries, and Sidekiq queues piling up under load, where simple fixes like batching jobs or tweaking retries didn’t help much.
We thought Active Record was the bottleneck, but fixing it only scratched the surface. We optimised query access patterns, chose more efficient data structures, restructured background jobs, and introduced smarter database caching and indexing strategies.
I’ll share how we analysed query plans, fine-tuned database performance, and replaced slow, fragile logic with leaner, more explicit code paths that scaled better and failed less while Rails stayed right at the center of it all.
Sep 05 - 11:15 to 11:45
Track 2 - Graanbeurs
About the speaker
Snehal Ahire
Lead Software Engineer
Snehal is lead engineer who loves solving backend problems. She has scaled, refactored old legacy system, with a focus on performance and mentoring. When she's not deep in code, you’ll find her painting, cooking something new, or happily lost in her garden balancing bugs with blooms.