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 Hint and MaxTimeMS support to Count() #461

Open
wants to merge 4 commits into
base: v2-unstable
Choose a base branch
from

Conversation

fmpwizard
Copy link
Contributor

Add Hint and MaxTimeMS to the countCmd struct.

Added two unit tests covering the changes.

I had to uncomment the .env file because locally I run mongo 3.2, if this messes anything else, I can undo it.

I have been using the Hint part of this patch for several months on production on collections with several millions of documents and works well :)

Fixes https://github.com/go-mgo/mgo/issues/364

technically speaking, 2.5.5 for the Hint feature
travis is failing for most (all?) PRs even when the exit code is 0.
This only happens for the two older mongo versions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant