Share
Embed
Welcome and What's New in MongoDB 2.0 - Eliot Horowitz, 10gen
mongodb
October 05, 2011
Transcript
15 slides
-
Eliot Horowitz @eliothorowitz MongoBoston October 3, 2011 Welcome and 2.0
Wednesday, October 5, 2011 -
JSON Documents • Rich data models • Seamlessly map to
native programming language types • Flexible for dynamic data • Better data locality Wednesday, October 5, 2011 -
General-Purpose DBMS • Sophisticated secondary indexes • Dynamic queries •
Sorting • Rich updates, upserts • Easy aggregation • Viable primary data store Wednesday, October 5, 2011 -
Scaling • Scale linearly • Increase capacity with no downtime
• Transparent to the application Wednesday, October 5, 2011 -
Few Knobs • Few configuration options • Does the right
thing out of the box • Easy to deploy and manage Wednesday, October 5, 2011 -
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 -
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 -
MongoDB 2.0 • 417 JIRA issues • Performance enhancements •
Operational improvements • Dozens of new features Wednesday, October 5, 2011 -
Journaling • Default on 64-bit platforms • Journal files compressed
• getLastError( { j : true } ) for fast journal acks Wednesday, October 5, 2011 -
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 -
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 -
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 -
• Indexes 25% smaller • Geo search by polygon •
Map/Reduce output to sharded collection • $and • Stack size defaults to 1mb Wednesday, October 5, 2011 -
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