• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
MongoDB: The Way and its Power
 

MongoDB: The Way and its Power

on

  • 5,203 views

MongoDB presentation at Ruby Nation 2010.

MongoDB presentation at Ruby Nation 2010.

Statistics

Views

Total Views
5,203
Views on SlideShare
4,751
Embed Views
452

Actions

Likes
16
Downloads
121
Comments
0

6 Embeds 452

http://nosql.mypopescu.com 172
http://www.mongodb.org 166
http://www.campeterson.com 83
http://www.slideshare.net 29
http://static.slidesharecdn.com 1
http://bummerware.tumblr.com 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />

MongoDB: The Way and its Power MongoDB: The Way and its Power Presentation Transcript

  • MongoDB The Way 道 &  its Power 德 Saturday, April 10, 2010
  • kyle banker @hwaet kyle@10gen.com Saturday, April 10, 2010
  • Why  build MongoDB? Saturday, April 10, 2010
  • Saturday, April 10, 2010
  • Mean  &  Extremes Key-­‐Value MongoDB Relational Saturday, April 10, 2010
  • 10  Ideas Saturday, April 10, 2010
  • 1 The Real MongoDB Saturday, April 10, 2010
  • try.mongodb.org Saturday, April 10, 2010
  • documents collections dynamic  queries secondary  indexes     explain Saturday, April 10, 2010
  • Demo Saturday, April 10, 2010
  • Ruby driver Saturday, April 10, 2010
  • a pageview document Saturday, April 10, 2010
  • _id is the primary key Saturday, April 10, 2010
  • what’s in an oid? Saturday, April 10, 2010
  • what’s in an oid? 4b6857a0 timestamp Saturday, April 10, 2010
  • what’s in an oid? 4b6857a0 7613c3 timestamp machine id Saturday, April 10, 2010
  • what’s in an oid? 4b6857a0 7613c3 6709 timestamp machine id process id Saturday, April 10, 2010
  • what’s in an oid? 4b6857a0 7613c3 6709 4426b2 timestamp machine id process id counter Saturday, April 10, 2010
  • bsonspec.org Saturday, April 10, 2010
  • When we call #save: Saturday, April 10, 2010
  • When we call #save: 1. Add an _id Saturday, April 10, 2010
  • When we call #save: 1. Add an _id 2. Serialize to BSON Saturday, April 10, 2010
  • When we call #save: 1. Add an _id 2. Serialize to BSON 3. socket.send() Saturday, April 10, 2010
  • 2 Object Ids Saturday, April 10, 2010
  • all about object ids MongoDB standard Timestamp 12-byte BSON type (string is 16) If you still use a string, careful: Saturday, April 10, 2010
  • 3 Use rich documents Saturday, April 10, 2010
  • Saturday, April 10, 2010
  • Simulating a flexible schema Saturday, April 10, 2010
  • Simulating a flexible schema What’s the join like? Saturday, April 10, 2010
  • Simulating a flexible schema What’s the join like? Can we reason about it? Saturday, April 10, 2010
  • {:sku => ‘637636’, :name => ‘Linen tailored pant’, :about => [{:title => ‘fabric & care’, :content => [‘Dry clean’, ‘Imported’]}, {:title => ‘overview’, :content => [‘Tailored fit’, ‘Yarn dyed’]} ] }* Saturday, April 10, 2010
  • wordnik.com Saturday, April 10, 2010
  • migrated  1.2  TB Saturday, April 10, 2010
  • migrated  1.2  TB queries  take  1/4   the  time Saturday, April 10, 2010
  • Saturday, April 10, 2010
  • Saturday, April 10, 2010
  • Saturday, April 10, 2010
  • Saturday, April 10, 2010
  • Saturday, April 10, 2010
  • Text Text Saturday, April 10, 2010
  • Text Text Saturday, April 10, 2010
  • Text Text Saturday, April 10, 2010
  • dynamic queries Saturday, April 10, 2010
  • dynamic queries Saturday, April 10, 2010
  • dynamic queries Saturday, April 10, 2010
  • dynamic queries Saturday, April 10, 2010
  • query operators $ne $in $nin $mod $all $size $exists Saturday, April 10, 2010
  • 4 Array keys Saturday, April 10, 2010
  • simplify tiny relations Saturday, April 10, 2010
  • simplify tiny relations Saturday, April 10, 2010
  • simplify tiny relations Saturday, April 10, 2010
  • simplify tiny relations Saturday, April 10, 2010
  • many-to-many Saturday, April 10, 2010
  • many-to-many Saturday, April 10, 2010
  • many-to-many Saturday, April 10, 2010
  • many-to-many Saturday, April 10, 2010
  • many-to-many Saturday, April 10, 2010
  • 5 Use atomic operators Saturday, April 10, 2010
  • votes Saturday, April 10, 2010
  • votes Saturday, April 10, 2010
  • votes Saturday, April 10, 2010
  • votes Saturday, April 10, 2010
  • votes Saturday, April 10, 2010
  • inventory find_and_modify Saturday, April 10, 2010
  • inventory find_and_modify Saturday, April 10, 2010
  • inventory find_and_modify Saturday, April 10, 2010
  • inventory find_and_modify Saturday, April 10, 2010
  • update operators $inc $set $push $pushAll $pop $pull $pullAll Saturday, April 10, 2010
  • 6 Map-reduce is for aggregation. Results in a new collection. Saturday, April 10, 2010
  • map Saturday, April 10, 2010
  • map Saturday, April 10, 2010
  • map Saturday, April 10, 2010
  • reduce Saturday, April 10, 2010
  • reduce Saturday, April 10, 2010
  • 7 Indexes are indexes Saturday, April 10, 2010
  • be smart about indexes Saturday, April 10, 2010
  • be smart about indexes similar to indexes in MySQL Saturday, April 10, 2010
  • be smart about indexes similar to indexes in MySQL building indexes can take time Saturday, April 10, 2010
  • be smart about indexes similar to indexes in MySQL building indexes can take time build compound indexes Saturday, April 10, 2010
  • be smart about indexes similar to indexes in MySQL building indexes can take time build compound indexes Saturday, April 10, 2010
  • 8 Performance notes. Saturday, April 10, 2010
  • notes: Saturday, April 10, 2010
  • notes: Ruby driver does a lot of work Saturday, April 10, 2010
  • notes: Ruby driver does a lot of work Run multiple Ruby processes Saturday, April 10, 2010
  • notes: Ruby driver does a lot of work Run multiple Ruby processes Embedded documents Saturday, April 10, 2010
  • notes: Ruby driver does a lot of work Run multiple Ruby processes Embedded documents Queries should use indexes Saturday, April 10, 2010
  • notes: Ruby driver does a lot of work Run multiple Ruby processes Embedded documents Queries should use indexes Keep indexes in RAM Saturday, April 10, 2010
  • notes: Ruby driver does a lot of work Run multiple Ruby processes Embedded documents Queries should use indexes Keep indexes in RAM Keep working set in RAM Saturday, April 10, 2010
  • 9 Auto-shard, to keep it in RAM. Saturday, April 10, 2010
  • masterless key-value dynamo order-preserving BigTable PNUTS Saturday, April 10, 2010
  • Saturday, April 10, 2010
  • client Saturday, April 10, 2010
  • mongos client Saturday, April 10, 2010
  • Shards m m m m m m m m m mongos client Saturday, April 10, 2010
  • Shards m m m Config m m m m m m Servers mongod mongod mongod mongos client Saturday, April 10, 2010
  • Shards m m m ... Config m m m m m m Servers mongod mongod mongod mongos ... mongos client Saturday, April 10, 2010
  • 10 Production Saturday, April 10, 2010
  • agile development Saturday, April 10, 2010
  • agile development simplicity / flexibility Saturday, April 10, 2010
  • agile development simplicity / flexibility analytics / logging Saturday, April 10, 2010
  • agile development simplicity / flexibility analytics / logging speed / scalability Saturday, April 10, 2010
  • docs and downloads mongodb.org mailing list: mongodb-user irc: mongodb (freenode) Saturday, April 10, 2010