-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add support for hint option to aggregation. [DATAMONGO-1836] #2737
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
Comments
Tristan Bezotte commented I think this addition would be pretty easy to put in. We would basically add a hint and handle this in the applyAndReturnPotentiallyChangedCommand(DBObject command), toDbObject() and the Builder methods. Is there anything else that needs to be taken into consideration? I attached a pared down file with the changes, just to get a feel of it |
Dear team,
As you see I want to pass a BSON literal, not a |
@christophstrobl Maybe you can help me with the following issue. If you wish I can post it to StackOverflow, but I really think that I do something simply wrong.
It does not matter what aggregate is, the point is that I pass a hint as a document, the hint is correctly interpreted as "use any index of field
and the query works just fine if I remove
which should be equivalent to the above. However it fails this way:
It seems to be an error in MongoDB driver (I am using the latest v4.3.0) but it is very strange... I have put a breakpoint to |
Christoph Strobl opened DATAMONGO-1836 and commented
Attachments:
Issue Links:
("is duplicated by")
Referenced from: pull request #878
5 votes, 5 watchers
The text was updated successfully, but these errors were encountered: