concept precomputation in category mongoDB
appears as: precomputation

This is an excerpt from Manning's book MongoDB in Action, Second Edition: Covers MongoDB version 3.0.
The other principle at work here is precomputation. Sometime near the beginning of the month, you insert a template document with zeroed values for each day of the month. As a result, the document will never change size as you increment the counters therein because you’ll never actually add fields; you’ll only change their values in place. This is important because it keeps the document from being relocated on disk as you write to it. Relocation is slow and often results in fragmentation.