Skip to content

Commit 39e1dcb

Browse files
authored
(DOCS-14745): Added note about the document count. (#355)
* (DOCS-14745): Added note about the document count. * (DOCS-14745): Added more details per Moe's question. * (DOCSP-14745): Incorporated info from Sergey
1 parent d71c554 commit 39e1dcb

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

source/collections.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,19 @@ information for each collection in the selected database:
3535

3636
- Collection name
3737
- Number of :doc:`documents </documents>` in the collection
38+
39+
.. note::
40+
41+
|compass-short| bases the document count that appears on the
42+
:guilabel:`Collections` screen on cached metadata using
43+
:manual:`collStats </reference/command/collStats/>`. This count
44+
might differ from the actual document count in the collection. For
45+
example, an :manual:`unexpected shutdown
46+
</reference/command/collStats/#behavior>` can throw off the count.
47+
Use the :manual:`db.collection.countDocuments()
48+
</reference/method/db.collection.countDocuments/>` method for the
49+
most accurate document count.
50+
3851
- Average size of documents in the collection
3952
- Total size of all documents in the collection
4053
- Number of :doc:`indexes </indexes>` on the collection

0 commit comments

Comments
 (0)