~/talk

Using Databases to pull your applications weight

Talkat RailsConf 2018 · 2018-04-17..04-19· [databases, ruby-on-rails]
slides:none on file

Shows concrete changes and measured wins: move heavy filtering and JSON assembly into Postgres, use materialized views for repeated reports, and convert queries to JSON so the database returns ready payloads. Using Postgres plus a small helper like the Surus gem reduces an API from ~2s to ~200ms and raises throughput from ~25 to ~467 requests/sec. Index judiciously, preload arrays to avoid many objects, and disable synchronous commits for noncritical writes to speed ingestion at the cost of possible recent data loss.

AI-written summary · about

  1. 0:00Introduction
  2. 3:06The case for database tools
  3. 4:45Understanding query planners
  4. 6:11Optimizing with EXPLAIN
  5. 8:47Indexing strategies
  6. 11:43Attribute preloading
  7. 13:10Utilizing database views
  8. 17:35Benchmarking and tradeoffs
  9. 20:06Generating JSON in database
  10. 25:46Synchronous commits
  11. 28:52Conclusion and Q&A
~/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.