~/talk

Using Databases to Pull Your Application Weight

Talkat Southeast Ruby 2017 · 2017-10-05..10-06· [databases, ruby]
slides:none on file

Shows concrete database moves that cut CPU and cost: move heavy joins into Postgres materialized views, convert view rows to JSON in the DB instead of Ruby, use array/attribute preloading to avoid object bloat, and read EXPLAIN plans to force indexes only where they help. Disables synchronous_commit on ingesting devices to accept small data loss. Benchmarks: a 1M-row report drops from ~1s to 2.3ms; an API goes from ~2s to <200ms (sometimes 50ms); throughput jumps from 25 req/s to ~330 req/s.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 4:01Application scaling challenges
  3. 13:17Query planning and indexing
  4. 18:21Attribute preloading and N+1 queries
  5. 20:31Database views and materialized views
  6. 31:34JSON generation in databases
  7. 36:27Synchronous commit optimization
  8. 39:14Summary and key takeaways
~/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.