June 2014
Intermediate to advanced
696 pages
38h 52m
English
Denormalizing data is the process of identifying subobjects of a main object that should be embedded directly into the document of the main object. Typically you do this on objects that have a mostly one-to-one relationship or are relatively small and do not get updated frequently.
The major advantage of denormalized documents is that you can get the full object back in a single lookup, without needing to do additional lookups to combine subobjects from other collections. This is a major performance enhancement. The downside is that for subobjects with a one-to-many relationship, you will be storing a separate copy in each document, which slows down insertion a bit and also takes up additional disk space. ...
Read now
Unlock full access