~/talk

All the Things I Thought I Couldn't Do

Talkat RailsConf 2021 · 2021-04-12..04-15· [ruby-on-rails]
slides:none on file

Implements granular connection swapping for Active Record by moving role tracking into a shard→pool_config map and adding a pool manager, plus a public API like connected_to_many to swap multiple connections without nested blocks. Ships to production at GitHub (15 databases), reduces unnecessary primary queries, and lands in rails 6.1 as opt‑in via legacy_connection_handling. Shows concrete bugs found (prevent_writes and multiple abstract classes), fixes made, and that the feature actually works under real load.

AI-written summary · about

  1. 0:00Start
  2. 28:54Why a Rails Application Might Need Multiple Databases
  3. 30:27Automatic Switcher
  4. 31:51Manual Switching
  5. 32:27Brief History of Connection Management
  6. 39:46Nesting Calls
  7. 54:04Why We Think Our Pairing Is Successful
  8. 1:03:05Learn a Foreign Language
  9. 1:03:54Measure Progress
  10. 1:05:16Measuring Progress
~/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.