~/talk

Rails Performance Monitoring 101: A Primer for Developers

Talkat RubyConf TH 2023 · 2023-10-06..10-07· [web-performance, ruby-on-rails]
slides:none on file

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

  1. 0:00Introduction
  2. 3:12Common Rails performance issues
  3. 7:10Why monitoring matters
  4. 7:53APM tools for Rails
  5. 9:19Key APM metrics
  6. 11:49Memory allocation issues
  7. 14:00Fixing N+1 queries
  8. 17:50Detecting N+1 queries
  9. 18:55Background jobs and timeouts
  10. 21:02Missing DB indexes
  11. 24:54Index order and queries
  12. 25:16Resources and closing
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.