• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
MongoDB Schema Design
 

MongoDB Schema Design

on

  • 44,305 views

Slides from a webcast on schema design in MongoDB.

Slides from a webcast on schema design in MongoDB.

Statistics

Views

Total Views
44,305
Views on SlideShare
41,020
Embed Views
3,285

Actions

Likes
111
Downloads
1,294
Comments
2

62 Embeds 3,285

http://www.10gen.com 2024
http://www.ccok.me 473
http://www.slideshare.net 165
http://poikkimaki.se 107
http://ammasajan.blogspot.com 67
http://redcloverbi.wordpress.com 56
http://static.slidesharecdn.com 44
http://mongospanish.blogspot.com 40
http://www.linkedin.com 38
http://ammasajan.blogspot.in 31
http://www.poikkimaki.se 28
http://localhost 17
http://ammasajan.blogspot.sg 12
http://ammasajan.blogspot.com.es 11
http://ccok.me 11
http://www.zhuaxia.com 10
http://wiki.infobank.net 9
http://cache.baidu.com 8
http://ammasajan.blogspot.com.au 8
http://ammasajan.blogspot.fr 7
http://www.taaza.com 7
http://d.hatena.ne.jp 6
https://www.10gen.com 6
http://webcache.googleusercontent.com 5
http://www.mongodb.org 5
http://localhost:3000 5
http://ammasajan.blogspot.co.uk 5
http://paper.li 5
http://www.schoox.com 5
http://ammasajan.blogspot.ca 5
https://twitter.com 5
http://rg443blog.wordpress.com 4
http://ammasajan.blogspot.jp 4
http://ammasajan.blogspot.mx 4
http://pacocuartob.wordpress.com 3
http://www.mefeedia.com 3
http://zhuaxia.com 3
http://localhost:9877 3
http://www.stylejar.com 3
http://xianguo.com 2
http://ammasajan.blogspot.be 2
http://ammasajan.blogspot.ro 2
http://ccok-me.jsfirm.cn 2
http://www.twylah.com 2
http://ammasajan.blogspot.kr 2
http://www.verious.com 2
http://ammasajan.blogspot.de 2
http://ammasajan.blogspot.it 2
http://ammasajan.blogspot.co.nz 2
http://ammasajan.blogspot.pt 1
More...

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

12 of 2 previous next

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
  • Wondering what the pros and cons are for the two Many-to-many approaches (slides 41, 42). I'm assuming slide 41 there is less query time, but there is some more logic to updating/deleting of a category-product relationship. What makes more sense when scaling out? Thanks.
    Are you sure you want to
    Your message goes here
    Processing…
  • nice slides
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    MongoDB Schema Design MongoDB Schema Design Presentation Transcript

    • Schema  Design http://www.mongodb.org/ Tuesday, April 27, 2010
    • Three  Questions Tuesday, April 27, 2010
    • What’s  the  basic  unit   of  data? Tuesday, April 27, 2010
    • What’s  the  basic  unit   of  data? Documents Tuesday, April 27, 2010
    • How  can  we  query   and  manipulate  that   data? Tuesday, April 27, 2010
    • How  can  we  query   and  manipulate  that   data? Dynamic  Queries Tuesday, April 27, 2010
    • How  can  we  query   and  manipulate  that   data? Dynamic  Queries Secondary  Indexes Tuesday, April 27, 2010
    • How  can  we  query   and  manipulate  that   data? Dynamic  Queries Secondary  Indexes Atomic  Updates Tuesday, April 27, 2010
    • How  can  we  query   and  manipulate  that   data? Dynamic  Queries Secondary  Indexes Atomic  Updates Map-­‐Reduce Tuesday, April 27, 2010
    • Any  limitations? Tuesday, April 27, 2010
    • Any  limitations? No  Joins Tuesday, April 27, 2010
    • What  are  our   application  access   patterns? Tuesday, April 27, 2010
    • What  are  our   application  access   patterns? Read  /  Write  Ratio Tuesday, April 27, 2010
    • What  are  our   application  access   patterns? Read  /  Write  Ratio Types  of  updates Tuesday, April 27, 2010
    • What  are  our   application  access   patterns? Read  /  Write  Ratio Types  of  updates Range  of  Queries Tuesday, April 27, 2010
    • General  Advice Tuesday, April 27, 2010
    • 1.  Use  Rich  Documents Tuesday, April 27, 2010
    • Tuesday, April 27, 2010
    • Tuesday, April 27, 2010
    • Tuesday, April 27, 2010
    • Tuesday, April 27, 2010
    • Tuesday, April 27, 2010
    • Tuesday, April 27, 2010
    • Tuesday, April 27, 2010
    • Map-­‐Reduce Tuesday, April 27, 2010
    • wordnik.com Tuesday, April 27, 2010
    • 2. Simplify  Trivial     Relations Tuesday, April 27, 2010
    • Tags Tuesday, April 27, 2010
    • Tags Tuesday, April 27, 2010
    • Tags Tuesday, April 27, 2010
    • Votes Tuesday, April 27, 2010
    • Adding  a  vote Finding  all  votes  for  a  given  user Tuesday, April 27, 2010
    • 3. Modeling  Typical   Relations Tuesday, April 27, 2010
    • post  -­‐>  many  comments post comments post_id user_id tree attrs Tuesday, April 27, 2010
    • 1.  Embedded  Document Tuesday, April 27, 2010
    • 1.  Embedded  Document Tuesday, April 27, 2010
    • 2.  Embedded  and  Nested  Document Tuesday, April 27, 2010
    • 3.  Normalized  Collection Tuesday, April 27, 2010
    • Use  Cases 1.  Embedded  document Fast  queries Document  always  appears  w/  parent. 2.  Embedded  &  nested  document Complex  hierarchies Document  appears  with  parent 3.  Normalized Maximum  flexibility. Simplified  global  updates. Tuesday, April 27, 2010
    • many-­‐to-­‐many products join product_id category_id categories Tuesday, April 27, 2010
    • Products  and  Categories Tuesday, April 27, 2010
    • Products  and  Categories  (Alternative) Tuesday, April 27, 2010
    • 4. Exercises  for  the  Viewer Tuesday, April 27, 2010
    • Trees http://www.mongodb.org/display/DOCS/Trees+in+MongoDB Tuesday, April 27, 2010
    • Trees http://www.mongodb.org/display/DOCS/Trees+in+MongoDB Stacks,  Queues,  Lists http://www.mongodb.org/display/DOCS/findandmodify+Command Tuesday, April 27, 2010
    • Trees http://www.mongodb.org/display/DOCS/Trees+in+MongoDB Stacks,  Queues,  Lists http://www.mongodb.org/display/DOCS/findandmodify+Command Contribute! http://cookbook.mongodb.org Tuesday, April 27, 2010
    • Schema  Design http://www.mongodb.org/ Tuesday, April 27, 2010