Slide 1

Slide 1 text

Why newbies do not like MongoDB spbmug.blogspot.com

Slide 2

Slide 2 text

Why MongoDB could be disliked?

Slide 3

Slide 3 text

Why MongoDB could be disliked? There are questions. There are no answers.

Slide 4

Slide 4 text

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?

Slide 5

Slide 5 text

How to link documents ● No way.

Slide 6

Slide 6 text

How to link documents ● No way ● ObjectId(…) ● DBRef(…) ● Merging linked documents

Slide 7

Slide 7 text

How to keep documents structure ● No way (again☺)

Slide 8

Slide 8 text

How to keep documents structure ● No way ● ODM ● Scheme does not require

Slide 9

Slide 9 text

What is the correct documents structure

Slide 10

Slide 10 text

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

Slide 11

Slide 11 text

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

Slide 12

Slide 12 text

Why MongoDB is running slowly

Slide 13

Slide 13 text

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

Slide 14

Slide 14 text

Why MongoDB is running slowly ● indexes ● data structure ● find(…).explain() ● mongodb-user-russian@googlegroups. com

Slide 15

Slide 15 text

Questions ● www.mongodb.org/display/DOCS ● www.10gen.com/what-is-mongodb ● [email protected][email protected] ● stackoverflow.com/questions/tagged/mongodb spbmug.blogspot.com