~/talk

MongoDB to MySQL the How and the Why

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

A large Rails social project starts on MongoDB with MongoMapper, accumulates thousands of users and complex linked social graphs, then migrates to MySQL because document storage forces manual joins and slows development. The team exports with mongoexport to CSV, converts and imports with batch inserts, LOAD DATA INFILE and active_record_import, uses 10k–20k batch sizes, keeps a Legacy ID column to reconcile Mongo GUIDs, accepts about two hours downtime, and ends up with faster iteration after MongoDB → MySQL conversion.

AI-written summary · about

  1. 0:00Introduction
  2. 8:28Why diaspora chose MongoDB
  3. 16:43Social data is relational
  4. 24:04Development friction with MongoDB
  5. 27:54Mapper problems in practice
  6. 28:16Migrating to MySQL
  7. 35:08Q&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.