Skip to content

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

fmpwizard added 4 commits July 2, 2017 01:03
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
Development

Successfully merging this pull request may close these issues.

1 participant