paper to be published on relational db back to 1970 – http://dl.acm.org/citation.cfm?doid=362384.362685 • Lot’s of different tech based on SQL • Default standard for persisting information
value • Query on any field • Very structured schema (tables) • In-place updates • Normalization requires many tables, joins, indexes • Poor data locality Primary Key
many or embedded values • Query on any field & level • Flexible schema • Inline updates • Embedding related data has optimal data locality, requires fewer indexes, has better performance _id
memory-mapped files i.e. read-through write-through memory caching. • Runs nearly everywhere • Data serialized as BSON (fast parsing) • Full support for primary & secondary indexes • Document model = less work
"body" : "This is my first blog post", "date" : ISODate("2013-06-20T00:00:00Z"), "username" : "erlichson", "tags" : [ "adventure", "mongodb" ], "comments" : [ ] } Finding the Post