From c6727b12ce11da311114b3b612c75a6a93bf774f Mon Sep 17 00:00:00 2001 From: Bob Grabar Date: Fri, 11 Jan 2013 12:03:00 -0500 Subject: [PATCH 1/3] DOCS-795 max number of docs in a capped collection --- source/reference/limits.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/source/reference/limits.txt b/source/reference/limits.txt index 1de5c4747e8..9da804cc324 100644 --- a/source/reference/limits.txt +++ b/source/reference/limits.txt @@ -98,6 +98,22 @@ Indexes There can be no more than 31 fields in a compound index. +Capped Collections +~~~~~~~~~~~~~~~~~~ + +.. versionchanged:: 2.3 + +.. limit:: Max Number of Documents in a Capped Collection + + If you set a maximum for the number of documents in a capped + collection, the maximum must be less than 2^32. You *cannot* set a + higher maximum. Alternatively, you can choose *not* to set a maximum, + in which case the number of documents can exceed 2^32. + + You specify the maximum when creating a capped collection by setting + the optional ``max`` parameter. For details, see + :method:`db.createCollection()` or :dbcommand:`create`. + Replica Sets ~~~~~~~~~~~~ From b637e883be13a9d67b137dbeb3196ab43eab8aa6 Mon Sep 17 00:00:00 2001 From: Bob Grabar Date: Thu, 7 Feb 2013 18:49:22 -0500 Subject: [PATCH 2/3] DOCS-795 review edits --- source/reference/limits.txt | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/source/reference/limits.txt b/source/reference/limits.txt index 9da804cc324..8bc9dd9dc42 100644 --- a/source/reference/limits.txt +++ b/source/reference/limits.txt @@ -101,18 +101,18 @@ Indexes Capped Collections ~~~~~~~~~~~~~~~~~~ -.. versionchanged:: 2.3 - -.. limit:: Max Number of Documents in a Capped Collection - - If you set a maximum for the number of documents in a capped - collection, the maximum must be less than 2^32. You *cannot* set a - higher maximum. Alternatively, you can choose *not* to set a maximum, - in which case the number of documents can exceed 2^32. - - You specify the maximum when creating a capped collection by setting - the optional ``max`` parameter. For details, see - :method:`db.createCollection()` or :dbcommand:`create`. +.. 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 ~~~~~~~~~~~~ From 78d51745a1966207fc213a324bff66f17f12a41e Mon Sep 17 00:00:00 2001 From: Bob Grabar Date: Fri, 15 Feb 2013 12:53:16 -0500 Subject: [PATCH 3/3] DOCS-795 added version reference --- source/reference/limits.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/reference/limits.txt b/source/reference/limits.txt index 8bc9dd9dc42..281ea6bd8de 100644 --- a/source/reference/limits.txt +++ b/source/reference/limits.txt @@ -101,6 +101,8 @@ Indexes 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