~/talk

Postgres & Rails 6 Multi-DB: Pitfalls, Patterns, Performance

Talkat RailsConf 2019 · 2019-05-01..05-03· [databases, ruby-on-rails]
links:none on file
slides:none on file

Rails 6 multi-DB support lets Rails split reads and writes but it forces real choices: replicas lag from massive WAL on Write-heavy primaries (millions of users, hundreds of millions of updates per day), moving characters and sharding quotes reduces primary load but creates network hops and application-layer joins that slow tail latency. The talk demos partitioning with Postgres 11, sharding a quotes DB, visibility via Heroku CLI and data.heroku.com, and recommends PgBouncer and Rails 6 multi-DB guardrails like thresholds and circuit breakers.

AI-written summary · about

  1. 0:00Intro
  2. 2:40Super Secret Social interest platform revisited
  3. 4:09Let's Talk about the CAP...Theorem
  4. 9:59Interest Outlet: Our favorite Characters Performance: Optimizing Read Replicas
  5. 15:39Interest Outlet: Inspirational Quotes Performance: Partitioning Large Tables
  6. 22:25Consideration: What about connection pools?
  7. 24:23Refresher: My data is too big for DB Caches, what happens now?
  8. 27:33Food For Thought
  9. 32:49Heroku Connection Pooling: PgBouncer Beta
~/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.