RailsConf – Day 2 – MongoDB Metamorphosis
June 8th, 2010 by Brian | Filed under work.The MongoDB Metamorphosis: Data as Documents – Kyle Banker (10gen)
http://try.mongodb.com – mini tutorial
MongoDB tries to fit between key-value stores & relational databases
Data as Documents – documents are in BSON (binary json)
mongoDB operates on documents using special syntax
update() takes a query and an update (what to do) .. the update is applied to the results of the query
Embedded documents – i.e. Comments become embedded within Posts
Or you can normalize – Post id within each comment
Decisions to be made on what makes most sense for how you need to access the data
Embedded – fast queries, document always appears with parent
Hash is the object used to represent MongoDB objects
MongoMapper
Very informational, I want to try using this!


At last some rotainality in our little debate.