~/talk

Denormalizing Rails

Talkat Ruby Manor 2: Manor Harder · on Saturday, 2009-12-12· [ruby-on-rails, databases]
links:none on file
slides:none on file

A Rails site migrates heavy joins (five-table query for top fans) into precomputed documents stored in MongoDB, serving presenters that return IDs and counts and fall back to MySQL when missing. The system denormalizes 41 integer metrics per artist across 500,000 artists, populates them up front via background workers fed by an RabbitMQ AMQP stream, and maintains consistency with asynchronous observers (near-second latency). Tests assert silo generation on create/destroy so regeneration and persistence, not fragile frag caching, drive the approach.

AI-written summary · about

  1. 0:00Introduction
  2. 3:58Caching limits for performance
  3. 7:08Presenters as presentation layer
  4. 10:18Demo: presenter and silo
  5. 14:30Cache expiration challenges
  6. 17:04Asynchronous observers
  7. 21:14Testing denormalized updates
  8. 23:45Future plans and feedback
  9. 35:31Q&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.