Skip to content

DOCS-679 add 256 to list of powerof2sizes (and final size) plus typo cle... #356

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 29, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions source/reference/command/collMod.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,14 @@ collMod
The :collflag:`usePowerOf2Sizes` flag changes the method that
MongoDB uses to allocate space on disk for documents in this
collection. By setting :collflag:`usePowerOf2Sizes`, you ensure
that MongoDB will allocates space for documents in sizes that
are powers of 2 (e.g. 4, 8, 16, 32, 64, 128, 512...) With this
option MongoDB will be able to more effectively reuse space.
that MongoDB will allocate space for documents in sizes that
are powers of 2 (e.g. 4, 8, 16, 32, 64, 128, 256, 512...8388608).
With this option MongoDB will be able to more effectively reuse
space.

:collflag:`usePowerOf2Sizes` is useful for collections where you
will be inserting and deleting large numbers of documents to
ensure that MongoDB will effectively use space on disk.

.. include:: /includes/warning-blocking-database.rst