Skip to content

DOCS-842 document value of userStats #445

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 1 commit into from
Dec 4, 2012
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
10 changes: 6 additions & 4 deletions source/reference/collection-statistics.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Or:
Example Document
----------------

The output of :method:`db.collection.stats()` resembles the following:
The output of :method:`db.collection.stats()` resembles the following:

.. code-block:: javascript

Expand Down Expand Up @@ -115,13 +115,13 @@ Fields

The number of indexes on the collection. All collections have at
least one index on the :term:`_id` field.

.. versionchanged:: 2.2
Before 2.2, capped collections did not necessarily have an
index on the ``_id`` field, and some capped collections created
with pre-2.2 versions of :program:`mongod` may not have an
``_id`` index.


.. stats:: lastExtentSize

Expand Down Expand Up @@ -159,7 +159,9 @@ Fields
.. versionadded:: 2.2

Reports the flags on this collection set by the user. In version
2.2 the only user flag is ``usePowerOf2Sizes``.
2.2 the only user flag is :collflag:`usePowerOf2Sizes`.
If :collflag:`usePowerOf2Sizes` is enabled, :stats:`userFlags` will
be set to ``1``, otherwise :stats:`userFlags` will be ``0``.

See :dbcommand:`collMod` for more information on setting user
flags and :ref:`usePowerOf2Sizes <usePowerOf2Sizes>`.
Expand Down