Meetup#1: 10 reasons to fall in love with MongoDB

413 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
413
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • * No transactions * Fast in-place updates
  • ObjectId: 0 1 2 3 4 5 6 7 8 9 10 11 Timestamp Machine PID Increment
  • Meetup#1: 10 reasons to fall in love with MongoDB

    1. 1. 10 reasonsto fall in love
    2. 2. IntroductionNoSQLMongoDB - humongousOpen source, 10genCross-platform: OS X, Linux, Windows, Solarisv1.0 – Aug 2009v1.9.1 – Aug 2011 (odd – DEV version)v2.0.3 – Feb 2012
    3. 3. 1. Fast & powerfulFocus on performance key/value Scalability and stores MongoDB performance RDBMS Depth of functionality
    4. 4. 2. Document-oriented{ _id: <document identifier>, key: “value”, subDocument: {innerProp: null}}JSON/BSON, 16MBBasic types, arrays, embedded documents,ObjectId, other
    5. 5. 3. Schema-free{ ObjectId_id: ObjectId("4B980A6DEA2C3F4579DA141E"),user_id: ObjectId("4B980A6DEA2C3F4579DA4F54"), Link to usershipping_address: { street: "3333 Green Ave", Embedded city: "Brooklyn", document state: "NY"},line_items: [ {sku: “rbk-423", name: “Case", price: 4000}, {sku: "spk-211", name: "Guitar", price: 9200}], Arraysubtotal: 13200, Embeddedtax: 1100, documentstotal: 14300} Duplication
    6. 6. 4. Rich queriesdb.books.find({name: “MongoDB”});{author: {$exists: true}, “info.price”: {$lt: 10}}$gt, $lt, $or, $not, $type, $exists, $in, $all,$elemMatch$where – JavaScript expressiondb.books.find().skip(50).limit(10).sort({name: 1})
    7. 7. 5. Full Index SupportBasic keys, Compound keysEmbedded fields, ArraysUnique, Sparse, BackgroundGeospatial indexes (2d)db.places.find({loc: {$near: [50,50],$maxDistance: 5}}).limit(20)
    8. 8. 6. Useful featuresAtomic modifiers ($inc, $set, $push…)UpsertFindAndModifyCapped collectionsMapReduceGridFS
    9. 9. 7. Replication Master-Slave Replica Set M M S M S S S S M M S M(Data Center Awareness)
    10. 10. 8. Auto-ShardingHorizontal scalability AL <= state < KA KA <= state < OH OK <= state <= WY mongod mongod mongod mongos client
    11. 11. 9. Easy to try~50MB of binariesNo installation requiredMulti-language support:C#, C, C++, Java, Perl, PHP, Python, RubyTools: MongoVUE, RockMongohttp://try.mongodb.org
    12. 12. 10. SupportDocumentation http://www.mongodb.org Official MongoDB site http://groups.google.com/group/mongodb-user Google user groupCommercial supportMongoDB Monitoring Service (MMS)
    13. 13. Questions?

    ×