Skip to content

PHPLIB-434: Add note about performance of countDocuments #735

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 2 commits into from
Apr 7, 2020

Conversation

alcaeus
Copy link
Member

@alcaeus alcaeus commented Apr 6, 2020

@alcaeus alcaeus requested a review from p-mongo April 6, 2020 11:53
@alcaeus alcaeus self-assigned this Apr 6, 2020
@@ -52,6 +52,14 @@ obtain the result. If a ``filter`` parameter is given, this is converted into
a ``$match`` pipeline operator. Optional ``$skip`` and ``$limit`` stages are
added between ``$match`` and ``group`` if present in the options.

.. note::

This method counts documents on the server side. To obtain the total number
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be clearer to say "To obtain an approximate total number of documents ...". When I read the current language, I first see "the total number" which to me is the exact number, and when I read the rest of the sentence I mentally go back and revise "the total number" to become "an estimated number".

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, updated!

@alcaeus alcaeus merged commit 051f345 into mongodb:master Apr 7, 2020
@alcaeus alcaeus deleted the phplib-434 branch April 7, 2020 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants