File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -364,8 +364,10 @@ padding for new inserts and moves.
364
364
.. versionadded:: 2.2
365
365
You can use the :dbcommand:`collMod` command with the
366
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.
367
+ space in sizes that are powers of 2. This helps ensure that the
368
+ space freed due to either deletions or document relocations is
369
+ reused efficiently. As with all padding, using powers of 2
370
+ minimizes, but does not eliminate, document movements.
369
371
370
372
To check the current :stats:`paddingFactor` on a collection, you can
371
373
run the :dbcommand:`db.collection.stats()` command in the
Original file line number Diff line number Diff line change @@ -678,7 +678,9 @@ grow on subsequent writes. You can change the default
678
678
:stats:`paddingFactor` calculation by using the the
679
679
:dbcommand:`collMod` command with the :collflag:`usePowerOf2Sizes`
680
680
flag. The :collflag:`usePowerOf2Sizes` flag ensures that MongoDB
681
- allocates document space in sizes that are powers of 2.
681
+ allocates document space in sizes that are powers of 2, which helps
682
+ ensure that the space freed due to either deletions or document
683
+ relocations is reused efficiently.
682
684
683
685
However, in those exceptions where you must pad manually, you can use
684
686
the strategy of first adding a temporary field to a document and then
You can’t perform that action at this time.
0 commit comments