Skip to content

Commit c6727b1

Browse files
author
Bob Grabar
committed
DOCS-795 max number of docs in a capped collection
1 parent 8fffdf6 commit c6727b1

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

source/reference/limits.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,22 @@ Indexes
9898

9999
There can be no more than 31 fields in a compound index.
100100

101+
Capped Collections
102+
~~~~~~~~~~~~~~~~~~
103+
104+
.. versionchanged:: 2.3
105+
106+
.. limit:: Max Number of Documents in a Capped Collection
107+
108+
If you set a maximum for the number of documents in a capped
109+
collection, the maximum must be less than 2^32. You *cannot* set a
110+
higher maximum. Alternatively, you can choose *not* to set a maximum,
111+
in which case the number of documents can exceed 2^32.
112+
113+
You specify the maximum when creating a capped collection by setting
114+
the optional ``max`` parameter. For details, see
115+
:method:`db.createCollection()` or :dbcommand:`create`.
116+
101117
Replica Sets
102118
~~~~~~~~~~~~
103119

0 commit comments

Comments
 (0)