Skip to content

DOCS-795 max docs in capped coll #527

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 20, 2013
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