Skip to content
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

Add profiling for countDocuments() and estimatedDocumentCount() #191

Merged

Conversation

phleauran
Copy link
Contributor

The profiling was already set for count(), but this method is deprecated since 1.4 and has been replaced by countDocuments().

As GromNaN mentioned here, we could get rid of encapsulation by using MongoDB built-in monitoring features, but it would require to refactor a large part of the bundle, so I went for the simple solution.

@phleauran
Copy link
Contributor Author

Hello. What's next for this PR?

@ilario-pierbattista ilario-pierbattista merged commit a46aca6 into facile-it:master Dec 7, 2024
8 checks passed
@ilario-pierbattista
Copy link
Member

Thank you @phleauran, just had some time today to review and merge. I'll release it soon

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.

3 participants