MongoMapper, Mixins, and Migrations - a look at managing data-model complexity by Tim Connor
262 views · Published 13 December 2011 · 34:59 · Indexed 23 September 2026
Channel: Confreaks · 2011 · Science & Technology
An exploration of how the DataMapper pattern used by MongoMapper works very well with key value stores, in general, and how exceptionally well it works in a Document store like Mongo exceptionally, versus it's less ideal match with a schema based document store like an RDBMS. Tim will be comparing benefits of how the ease of modeling your data in such a way, versus the iconic DB modeling of 3rd normal form, which brings up issues of composition over inheritance, which favors 3rd normal and how ruby's mixin system plays into that tension. This all leads up to having a data model that is trivial to make excessively dynamic, and challenging to keep sane and consistent, in such a system. Methods of migration and data massage are discussed with Tim suggesting what has worked best on some real Mongo projects, but such an approach would work well with any kv store.
More from this channel
-
1:13:32
Lightning Talks with Aaron Patterson and Various Presenters
-
37:02
Large scale Ruby project, challenges and Pitfalls. by Karunakar
-
28:29
Active Record Scopes and Arel by Jacob Swanner
-
10:19
Your Face in 10 minutes... with Macruby! by Haris Amin,
-
32:59
Test-driving GUIs (with RubyCocoa) by Brian Marick
-
32:59
A Rubyist's Guide to the Canvas API by H. Dean Hudson
-
29:02
Powerful Interfaces by Caike Souza
-
33:11
Testing Best Practices, or The Five Habits of Highly Effective Tests by Noel Rappin