Skip to content
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
18 changes: 18 additions & 0 deletions source/reference/limits.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,24 @@ Indexes

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

Capped Collections
~~~~~~~~~~~~~~~~~~

.. versionadded:: 2.2

.. limit:: Maximum Number of Documents in a Capped Collection

You can specify a maximum number of documents when creating a capped
collection by setting the optional ``max`` parameter in the
:method:`db.createCollection()` method or :dbcommand:`create`
command.

If you specify a maximum number of documents when creating a capped
collection, this limit must be less than 2\ :sup:`32` documents. If
you do not specify a maximum number of documents when creating a
capped collection, there is no limit on the number of documents in a
capped collection.

Replica Sets
~~~~~~~~~~~~

Expand Down