~/talk

MongoMapper, Mixins, and Migrations - a look at managing data-model complexity

Talkat RubyConf 2011 · 2011-09-29..10-01· [databases, ruby]
links:none on file
slides:none on file

Argues that the DataMapper pattern with MongoMapper fits document stores but makes schema drift costly when you have billions of records, so migrations must be explicit: deploy code that writes both old and new structures, keep finders against the old until counts hit zero, add a per-collection version flag, and run workers that use MongoDB’s find-and-modify atomically to claim and transform batches. Logs errors to disk, avoid dumping errors into Redis, and expect multi‑pass runs.

AI-written summary · about

  1. 0:00Introduction
  2. 1:19MongoDB overrated for most projects
  3. 3:24Dynamic schema and embedded docs
  4. 5:52Embedded docs vs joins
  5. 7:16Mixins vs inheritance
  6. 9:22Schema migrations in NoSQL
  7. 11:06Rails migrations fail for NoSQL
  8. 13:56MongoMapper migration strategies
  9. 16:42Background jobs for migrations
  10. 19:12Batching data transformations
  11. 21:39Migration performance with workers
  12. 23:06Trade-offs of flexible schema
  13. 25:54MongoDB vs other data stores
  14. 28:01Recommendations and limitations
  15. 31:11Performance of embedded docs
  16. 33:16Conclusion 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.