Skip to content

Commit 5a2a008

Browse files
author
Sam Kleinman
committed
DOCS-618: clarification to colelction stats document
1 parent 2d4d725 commit 5a2a008

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

source/reference/collection-statistics.txt

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,11 @@ Fields
8686

8787
.. stats:: size
8888

89-
The size of the collection. The ``scale`` argument affects this
90-
value.
89+
The size of the data stored in this collection. This value does not
90+
include the size of any indexes associated with the collection,
91+
which the :stats:`totalIndexSize` field reports.
92+
93+
The ``scale`` argument affects this value.
9194

9295
.. stats:: avgObjSize
9396

@@ -110,9 +113,15 @@ Fields
110113

111114
.. stats:: nindexes
112115

113-
The number of indexes on the collection. On standard, non-capped
114-
collections, there is always at least one index on the primary key
115-
(i.e. :term:`_id`).
116+
The number of indexes on the collection. All collections have at
117+
least one index on the :term:`_id` field.
118+
119+
.. versionchanged:: 2.2
120+
Before 2.2, capped collections did not necessarily have an
121+
index on the ``_id`` field, and some capped collections created
122+
with pre-2.2 versions of :program:`mongod` may not have an
123+
``_id`` index.
124+
116125

117126
.. stats:: lastExtentSize
118127

0 commit comments

Comments
 (0)