Rails Performance Monitoring 101: A Primer for Developers
summary
Covers concrete Rails fixes and metrics: use New Relic, Datadog, Scout APM plus local profilers like rack-mini-profiler and the bullet gem to find N+1s; target request queuing 20–50ms (shows spikes to 10,000ms); keep live object allocations under 50,000; replace .all with find_each, eager_load/includes to eliminate N+1s, use size instead of count in preloaded collections, push slow work to background jobs, set third‑party timeouts to ~2–5s, and add properly ordered composite indexes (example: explain cost drops 2440→8.44).
AI-written summary · about
chapters (12)
- 0:00Introduction
- 3:12Common Rails performance issues
- 7:10Why monitoring matters
- 7:53APM tools for Rails
- 9:19Key APM metrics
- 11:49Memory allocation issues
- 14:00Fixing N+1 queries
- 17:50Detecting N+1 queries
- 18:55Background jobs and timeouts
- 21:02Missing DB indexes
- 24:54Index order and queries
- 25:16Resources and closing
related talks
30mRails Performance monitoring: A primer for developers
45mRails Performance Monitoring 101: A Primer for Junior Developers
32mRails Performance First Aid
35m"10 performance sins of Rails applications"
01h 02mPerformance
44mPanel: Performance... performance
21mBuilding a Performance Analytics Tool with ActiveSupport
48mOn the Edge of Rails Performance
