Skip to content

Commit 13850f2

Browse files
authored
DOCS-15409 updates Capped Collection size constraints (#2031)
* DOCS-15409 updates Capped Collection size constraints * internal review feedback
1 parent ec86ed5 commit 13850f2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

source/core/capped-collections.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,8 @@ space for internal overhead.
148148

149149
db.createCollection( "log", { capped: true, size: 100000 } )
150150

151-
If the ``size`` field is less than or equal to 4096, then the collection will
152-
have a cap of 4096 bytes. Otherwise, MongoDB will raise the provided size to
153-
make it an integer multiple of 256.
151+
MongoDB increases the provided ``size`` to make it an integer multiple
152+
of 256.
154153

155154
Additionally, you may also specify a maximum number of documents for the
156155
collection using the ``max`` field as in the following document:

0 commit comments

Comments
 (0)