Old Fart Developer
Friday, February 26, 2010
OCRuby Feb 26, 2000 meeting minutes
Thought I'd post this here since the OCRuby group submission is moderated.
This is mainly interesting for the Mongo DB presentation by Tommy Chheng.
Michael has published 7 chapters of his electronic book at
Tommy: Whither Mongo DB for Natural Development
The New York Times
The Business Insider
The above are "big" sites.
SQL fixed schema
Data model Rows/Tables
Data Types Primitives
Records vs Documents
BSON data structure naturally maps to most programming languages hash object.
ORM can just be a thin layer.
Can debug Mongo a lot easier.
Chef recipe available
Start server: ./mongod
Run console: mongo
How to use in Ruby?
Easy to use in Rails or Sinatra
Testing using Facory Girl
fork which uses ActiveModel, see mailinglist
is complete but not merged in yet.
CouchDB or MongoDB?
One big database
Find by id ma/reduce JS functions
Find by id - dynamic JS queries
Update in place
MVCC - updates by making new version copy; good for data safety.
Update in place is a lot faster
MongoDB by default writes to disk in batches
Memory Mapped file:
32-bit 4GB limit, use 64-bit
Atomic updates only at document level
Solve by nesting related data in document
CouchDB-style MVCC revisioning
using mongoDB + mongo_mapper!
Post a Comment
Post Comments (Atom)