@@ -355,17 +355,17 @@ contiguous space to fit the larger document. Since the move will
355
355
require an update of all the indexes for the document, if the
356
356
collection has many indexes, the move will impact write performance.
357
357
358
- To minimize document movements, MongoDB employs padding. MongoDB adaptively
359
- learns if documents in a collection tend to grow, and if they do, adds
360
- a :stats:`paddingFactor` so that the document has room to grow on
361
- subsequent writes. The :stats:`paddingFactor` indicates the padding for
362
- new inserts and moves.
358
+ To minimize document movements, MongoDB employs padding. MongoDB
359
+ adaptively learns if documents in a collection tend to grow, and if
360
+ they do, adds a :stats:`paddingFactor` so that the documents have room
361
+ to grow on subsequent writes. The :stats:`paddingFactor` indicates the
362
+ padding for new inserts and moves.
363
363
364
364
.. versionadded:: 2.2
365
365
You can use the :dbcommand:`collMod` command with the
366
- `` usePowerOf2Sizes`` flag so that MongoDB allocates document space
367
- in sizes that are powers of 2. As with all padding, using powers of
368
- 2 minimizes, but does not eliminate, document movements.
366
+ :collflag:` usePowerOf2Sizes` flag so that MongoDB allocates document
367
+ space in sizes that are powers of 2. As with all padding, using
368
+ powers of 2 minimizes, but does not eliminate, document movements.
369
369
370
370
To check the current :stats:`paddingFactor` on a collection, you can
371
371
run the :dbcommand:`db.collection.stats()` command in the
0 commit comments