Skip to content

MongoTemplate should add query hint when executing update [DATAMONGO-2362] #3218

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

Closed
spring-projects-issues opened this issue Sep 12, 2019 · 1 comment
Assignees
Labels
type: enhancement A general enhancement

Comments

@spring-projects-issues
Copy link

Christoph Strobl opened DATAMONGO-2362 and commented


Reference URL: https://docs.mongodb.com/manual/release-notes/4.2/#update-and-hint

@christophstrobl
Copy link
Member

This can be moved to QueryOperations#getUpdateOptions reading the hint from the associated query.

christophstrobl added a commit that referenced this issue Mar 2, 2023
This commit makes sure to read query hints and apply them to the MongoDB UpdateOptions when running an update via Reactive-/MongoTemplate.

Closes: #3218
@mp911de mp911de closed this as completed in cd63501 Mar 6, 2023
mp911de added a commit that referenced this issue Mar 6, 2023
Introduce isEmpty method for HintFunction for easier invocation avoiding negations on the call site.

See #3218
Original pull request: #4311
@mp911de mp911de added this to the 4.1 M3 (2023.0.0) milestone Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants