Upgrade to Pro — share decks privately, control downloads, hide ads and more …

WTF: Document DBs

samant
April 19, 2013

WTF: Document DBs

samant

April 19, 2013
Tweet

More Decks by samant

Other Decks in Programming

Transcript

  1. Document DBs - Definition Document-oriented databases store documents. A document

    is like a hash, with a unique ID field and values that may be any of a variety of types, including more hashes. Documents can contain nested structures, and so they exhibit a high degree of flexibility, allowing for variable domains. The system imposes few restrictions on incoming data, as long as it meets the basic requirement of being expressible as a document.
  2. Mongo DB - Core design goals Document Database designed with

    three main goals: scalability, performance and easy data access
  3. Mongo DB - Pro's • Very flexible data model (No

    schema and nested values) • Handle huge amount of data and requests via horizontal and vertical scaling • Easy to use (Mongo commands close to SQL ones)
  4. Mongo DB - Con's • Encourage denormalization of schemas •

    Mongo flexibility (about field names, ...) could be dangerous • Require some effort to design and manage the data cluster
  5. Mongo DB - Supporting Companies • Foursquare • Bit.ly •

    CERN (for the LHC) • Heroku • The NY Times
  6. References Seven Databases in Seven Weeks: A Guide to Modern

    Databases and the NoSQL Movement by Eric Redmond and Jim R. Wilson