As MMAPv1 Document said
All records are adjacent to the disk, and when the document becomes larger than the selected record, MongoDB must select a new record. New distributions require that MongoDB move the document and update all indexes related to the document, which takes longer than in-place updates and results in memory fragmentation. Changed in version 3.0.0.
By default, MongoDB uses Power of 2 Sized Allocations so that each document in MongoDB is stored in a record that contains the document itself and additional space or addition. Filling allows the document to grow as a result of updates while minimizing the probability of redistribution.
But the WiredTiger Document says nothing about this. So I just want to know if it’s very good when the record size changes or has some performance problems, but is not mentioned in the document.
Naryc source
share