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

Welcome and What's New in MongoDB 2.0 - Eliot Horowitz, 10gen

mongodb
October 05, 2011

Welcome and What's New in MongoDB 2.0 - Eliot Horowitz, 10gen

mongodb

October 05, 2011
Tweet

More Decks by mongodb

Other Decks in Technology

Transcript

  1. JSON Documents • Rich data models • Seamlessly map to

    native programming language types • Flexible for dynamic data • Better data locality Wednesday, October 5, 2011
  2. General-Purpose DBMS • Sophisticated secondary indexes • Dynamic queries •

    Sorting • Rich updates, upserts • Easy aggregation • Viable primary data store Wednesday, October 5, 2011
  3. Scaling • Scale linearly • Increase capacity with no downtime

    • Transparent to the application Wednesday, October 5, 2011
  4. Few Knobs • Few configuration options • Does the right

    thing out of the box • Easy to deploy and manage Wednesday, October 5, 2011
  5. Naming • X.<even> is stable (1.4, 1.6, 1.8, .... )

    • X.<odd> is development (1.5,1.7,...) • 1.10 - too confusing with1.1.0, etc... • 1.A - geeky - but a bit too weird and short term • 2.0 - best solution Wednesday, October 5, 2011
  6. A quick history • 1.0 - August 2009: simple, but

    used in production • 1.2 - December 2009: map/reduce, external sort index building • 1.4 - March 2010: background indexing, geo • 1.6 - August 2010: sharding, replica sets • 1.8 - March 2011: journalling, sparse/covered indexes Wednesday, October 5, 2011
  7. MongoDB 2.0 • 417 JIRA issues • Performance enhancements •

    Operational improvements • Dozens of new features Wednesday, October 5, 2011
  8. Journaling • Default on 64-bit platforms • Journal files compressed

    • getLastError( { j : true } ) for fast journal acks Wednesday, October 5, 2011
  9. compact command • Collection level opereations • Faster than repair

    because it does indexes in parallel • Does not require double disk space (2gb total) Wednesday, October 5, 2011
  10. Replica Sets • Priorities • Give each node a priority

    to have a favorite primary • Tags • Each node can now store a set of tags • You can use this to ensure that a write is propagated to multiple data centers • “majority” write concern Wednesday, October 5, 2011
  11. Concurrency • Server will yield locks in many cases when

    a page fault is needed: • updates by _id, removes, long cursor iterations • Ready to be hooked up more places • Finer grained locking preparation underway Wednesday, October 5, 2011
  12. • Indexes 25% smaller • Geo search by polygon •

    Map/Reduce output to sharded collection • $and • Stack size defaults to 1mb Wednesday, October 5, 2011
  13. First Talks • Horace Mann • How MTV Leverages MongoDB

    for CMS • Jeff Yamin, MTV Networks • Paul • Building Web Applications with MongoDB: An introduction • Nosh Petigara, 10gen • Sampson • Morphia: Easy Java Persistence • Scott Hernandez, 10gen Wednesday, October 5, 2011