Your SlideShare is downloading. ×
MongoDB, it's not just about big data
MongoDB, it's not just about big data
MongoDB, it's not just about big data
MongoDB, it's not just about big data
MongoDB, it's not just about big data
MongoDB, it's not just about big data
MongoDB, it's not just about big data
MongoDB, it's not just about big data
MongoDB, it's not just about big data
MongoDB, it's not just about big data
MongoDB, it's not just about big data
MongoDB, it's not just about big data
MongoDB, it's not just about big data
MongoDB, it's not just about big data
MongoDB, it's not just about big data
MongoDB, it's not just about big data
MongoDB, it's not just about big data
MongoDB, it's not just about big data
MongoDB, it's not just about big data
MongoDB, it's not just about big data
MongoDB, it's not just about big data
MongoDB, it's not just about big data
MongoDB, it's not just about big data
MongoDB, it's not just about big data
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

MongoDB, it's not just about big data

4,120

Published on

This is a presentation I gave at a NoSQL meetup in San Francisco on 08.09.11.

This is a presentation I gave at a NoSQL meetup in San Francisco on 08.09.11.

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

No Downloads
Views
Total Views
4,120
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
70
Comments
0
Likes
7
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • Market Product Business Model Team [Plan]
  • nosql started bc bd but also revisit ds
  • Transcript

    • 1. mongoDB It’s not just about big data 08.09.2011
    • 2. what is mongoDB?
    • 3.
      • “ Scalable, open-source, high-performance, document-oriented database ” - 10gen
    • 4. Storage model
      • relational
        • database
        • table
        • row
      • mongoDB
        • database
        • collection
        • document / object
    • 5. { _id: 1234, author: { name: “Bob Davis”, email : [email_address] }, post: “In these troubled times I like to …“, date: { $date: “2010-07-12 13:23UTC” }, location: [ -121.2322, 42.1223222 ], rating: 2.2, comments: [ { user: “jgs32@hotmail.com”, upVotes: 22, downVotes: 14, text: “Great point! I agree” }, { user: “holly.davidson@gmail.com”, upVotes: 421, downVotes: 22, text: “You are a moron” } ] } Documents (a.k.a. Objects)
    • 6. { _id: 1234, author: { name: “Bob Davis”, email : [email_address] }, post: “In these troubled times I like to …“, date: { $date: “2010-07-12 13:23UTC” }, location: [ -121.2322, 42.1223222 ], rating: 2.2, comments: [ { user: “jgs32@hotmail.com”, upVotes: 22, downVotes: 14, text: “Great point! I agree” }, { user: “holly.davidson@gmail.com”, upVotes: 421, downVotes: 22, text: “You are a moron” } ], tags: [ “Politics”, “Virginia” ] } Flexible “Schemas”
    • 7. dynamic queries db.posts.find({ author.name: “mike” }) db.posts.find({ rating: { $gt: 2 }}) db.posts.find({ tags: “Software” }) db.posts.find().sort({date: -1}).limit(10)
    • 8. query language
      • Predicates
        • <, <=, >, >=
        • $all
        • $exists
        • $ne
        • $in
        • $nin
        • $nor
        • $not
        • $or
        • $and
      • regular expressions
      • $where (js exps)
      • group()
      • ** no joins **
    • 9. indexes db.posts.ensureIndex({ author.name : 1 } db.posts.find({ author.name: “mike” })
    • 10. geospatial indexing and queries
      • db.places.ensureIndex( { loc: “2d” } )
      • db.places.find({ loc: { $near : [50, 50] } }).limit(10)
      • db.places.find({loc: {$within : {$box : [[40,40],[60,60]]}}})
      • db.places.find({loc: {$within : {$center : [[40,40],10]}}})
    • 11. atomic updates Comment c = {author: “will@objectlabs.com”, date: new Date(), text: “great post!”} db.posts.update({_id: post._id}, {$push: {comments: c}})
    • 12. atomic updates
      • operators
        • $set
        • $unset
        • $inc
        • $push
        • $pushAll
        • $pull
        • $pullAll
        • $bit
    • 13. aggregation and map/reduce
    • 14. Native drivers in almost every language
      • Java
      • Javascript
      • Python
      • Ruby
      • C#
      • PHP
      • and more…
    • 15. Built for scalability reliability from the ground up
    • 16. High performance, fault tolerant clusters made easy
      • Replica sets
      • Auto-sharding
    • 17. But, mongoDB is not just about big data
    • 18. Blog Post
    • 19.
      • &quot;Object-Relational mapping is the Vietnam of our industry” - Ted Neward
    • 20. { _id: 1234, author: { name: “Bob Davis”, email : [email_address] }, post: “In these troubled times I like to …“, date: { $date: “2010-07-12 13:23UTC” }, location: [ -121.2322, 42.1223222 ], rating: 2.2, comments: [ { user: “jgs32@hotmail.com”, upVotes: 22, downVotes: 14, text: “Great point! I agree” }, { user: “holly.davidson@gmail.com”, upVotes: 421, downVotes: 22, text: “You are a moron” } ], tags: [ “Politics”, “Virginia” ] } … vs. this loveliness
    • 21. mongoDB is a great general purpose database
    • 22. Good uses for MongoDB
      • accounts / user profiles
      • form data
      • CMS
      • storing geo-data
      • application configuration
      • application logging
    • 23. Q&A
    • 24. More info
      • MongoDB / 10Gen
        • http://mongodb.org
        • http://10gen.com
      • MongoLab
        • http://mongolab.com
        • [email_address]

    ×