diff --git a/source/reference/limits.txt b/source/reference/limits.txt index 1de5c4747e8..281ea6bd8de 100644 --- a/source/reference/limits.txt +++ b/source/reference/limits.txt @@ -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 ~~~~~~~~~~~~