Skip to content

Commit 7cfe770

Browse files
committed
PYTHON-1847 - Update countDocuments docstring
1 parent 6ec594e commit 7cfe770

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pymongo/collection.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1633,6 +1633,9 @@ def estimated_document_count(self, **kwargs):
16331633
def count_documents(self, filter, session=None, **kwargs):
16341634
"""Count the number of documents in this collection.
16351635
1636+
.. note:: For a fast count of the total documents in a collection see
1637+
:meth:`estimated_document_count`.
1638+
16361639
The :meth:`count_documents` method is supported in a transaction.
16371640
16381641
All optional parameters should be passed as keyword arguments

0 commit comments

Comments
 (0)