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

GODRIVER-3412 Add index hint support for distinct command. #1888

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

matthewdale
Copy link
Collaborator

GODRIVER-3412

Summary

Add index hint support for Distinct.

Background & Motivation

@mongodb-drivers-pr-bot mongodb-drivers-pr-bot bot added the priority-3-low Low Priority PR for Review label Nov 11, 2024
Copy link
Contributor

API Change Report

./v2/mongo/options

compatible changes

(*DistinctOptionsBuilder).SetHint: added
DistinctOptions.Hint: added

./v2/x/mongo/driver/operation

compatible changes

(*Distinct).Hint: added

Comment on lines 65 to 68
// SetHint sets the value for the Comment field. Specifies a string or document that
// will be included in server logs, profiling logs, and currentOp queries to help trace
// the operation. The default value is nil, which means that no comment will be included
// in the logs.
Copy link
Collaborator

Choose a reason for hiding this comment

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

We need to update the comments.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good catch! Will fix that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority-3-low Low Priority PR for Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants