June 2014
Intermediate to advanced
696 pages
38h 52m
English
Another important thing to consider when designing MongoDB documents and collections is the number of collections that the design will require. There really isn’t a significant performance hit for having a large number of collections, but there is a performance hit for having large numbers of items in the same collection. You should consider ways to break up your larger collections into more consumable chunks.
Say, for example that you store a history of user transactions in a database for past purchases. You recognize that for these completed purchases, you will never need to look them up together for multiple users. You only need them available for a user to look at his or her own history. ...
Read now
Unlock full access