MongoDB Hadoop DC

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

2 comments

Comments 1 - 2 of 2 previous next Post a comment

  • + mdirolf Mike Dirolf 1 month ago
    Thanks, glad you enjoyed it!
  • + cyril.mougel Cyril Mougel 1 month ago
    Great simple explain of MongoDB.

    I love MongoDB, thanks Mike
Post a comment
Embed Video
Edit your comment Cancel

2 Favorites

MongoDB Hadoop DC - Presentation Transcript

  1. open-source, high-performance, schema-free, document-oriented database
  2. JSON-style documents
  3. Schema-free • Loosening constraints - added flexibility • Dynamically typed languages • Migrations
  4. Dynamic queries • Administration • Ease of development • Familiarity
  5. Focus on performance
  6. Replication
  7. Auto-sharding
  8. Many supported platforms / languages
  9. Good at • The web • Caching • High volume data • Scalability
  10. Less good at • Highly transactional • Ad-hoc business intelligence • Problems that require SQL
  11. Quick example: blog back-end
  12. Post {author: “mike”, date: new Date(), text: “my blog post...”, tags: [“mongodb”, “dc”, “hadoop”]}
  13. Comment {author: “eliot”, date: new Date(), text: “great post!”}
  14. New post post = {author: “mike”, date: new Date(), text: “my blog post...”, tags: [“mongodb”, “dc”, “hadoop”]} db.posts.save(post)
  15. Embedding a comment c = {author: “eliot”, date: new Date(), text: “great post!”} db.posts.update({_id: post._id}, {$push: {comments: c}})
  16. Posts by author db.posts.find({author: “mike”})
  17. Last 10 posts db.posts.find() .sort({date: -1}) .limit(10)
  18. Posts in the last week last_week = new Date(2009, 9, 9) db.posts.find({date: {$gt: last_week}})
  19. Sharding
  20. Terminology • Shard key • Chunk • Range of the value space • (collection, key, min_val, max_val) • Shard • Single node (or replica pair) • Responsible for set of chunks
  21. Other cool stuff • Aggregation and map reduce • Capped collections • Unique indexes • Mongo shell • GridFS
  22. • Download MongoDB http://www.mongodb.org • Try it out • Let us know what you think
  23. • http://www.mongodb.org • irc.freenode.net#mongodb • mongodb-user on google groups • @mongodb, @mdirolf • mike@10gen.com • http://www.slideshare.net/mdirolf
  24. Posts ending with ‘Hadoop’ db.posts.find({text: /hadoop$/})
  25. Posts with a tag db.posts.find({tag: “mongodb”}) ... and fast db.posts.ensureIndex({tag: 1})
  26. Counting posts db.posts.count() db.posts.find({author: “mike”}).count()
  27. Basic paging page = 2 page_size = 15 db.posts.find().limit(page_size) .skip(page * page_size)
  28. Migration: adding titles • Easy - just start adding them: post = {author: “mike”, date: new Date(), text: “another blog post...”, tags: [“meetup”, “hadoop”], title: “Review from Hadoop DC”} post_id = db.posts.save(post)
  29. Advanced queries • $gt, $lt, $gte, $lte, $ne, $all, $in, $nin • where() db.posts.find({$where: “this.author == ‘mike’”})

+ Mike DirolfMike Dirolf, 1 month ago

custom

407 views, 2 favs, 0 embeds more stats

Presentation on MongoDB given at the Hadoop DC meet more

More info about this document

© All Rights Reserved

Go to text version

  • Total Views 407
    • 407 on SlideShare
    • 0 from embeds
  • Comments 2
  • Favorites 2
  • Downloads 24
Most viewed embeds

more

All embeds

less

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

Cancel
File a copyright complaint
Having problems? Go to our helpdesk?

Categories