Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Why newbies do not like MongoDB

Why newbies do not like MongoDB

The talk about "Why newbies do not like MongoDB" presented in lightning talks section on PyCon Russia 2013

200442040b9d038626d92d408f499642?s=128

Serge Matveenko

February 25, 2013
Tweet

Transcript

  1. Why newbies do not like MongoDB spbmug.blogspot.com

  2. Why MongoDB could be disliked?

  3. Why MongoDB could be disliked? There are questions. There are

    no answers.
  4. Newbie questions • How to link documents without joins? •

    How to keep documents structure without schema? • What is the correct documents structure? • Why MongoDB is running slowly?
  5. How to link documents • No way.

  6. How to link documents • No way • ObjectId(…) •

    DBRef(…) • Merging linked documents
  7. How to keep documents structure • No way (again☺)

  8. How to keep documents structure • No way • ODM

    • Scheme does not require
  9. What is the correct documents structure

  10. What is the correct documents structure The structure depends on:

    • the way you do queries • the way you display your data • the frequency of the inserts • the frequency of the updates
  11. What is the correct documents structure You need to think

    of: • what the different entities do you have • what documents could be merged with the linked entities • what documents could you merge in packs • what the cost of your indexes • how would you shard your data
  12. Why MongoDB is running slowly

  13. Why MongoDB is running slowly • indexes • data structure

    • find(…).explain()
  14. Why MongoDB is running slowly • indexes • data structure

    • find(…).explain() • mongodb-user-russian@googlegroups. com
  15. Questions • www.mongodb.org/display/DOCS • www.10gen.com/what-is-mongodb • mongodb-user-russian@googlegroups.com • mongodb-user@googlegroups.com •

    stackoverflow.com/questions/tagged/mongodb spbmug.blogspot.com