-
Notifications
You must be signed in to change notification settings - Fork 1.5k
limit queries of single finders to 2 #2594
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
Labels
type: enhancement
A general enhancement
Comments
quaff
added a commit
to quaff/spring-data-jpa
that referenced
this issue
Jul 26, 2022
In which version will this enhancement be integrated, any idea? |
This will be part of the next 3.0 milestone and therefore eventually in 3.0 GA. |
Backported to |
Backported to |
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Enhancement:
Given a repositorys find-method returning a single result or an java.util.Optional should limit the underlying query to 2.
This would help to get the expected Result in case of multiple rows (IncorrectResultSizeDataAccessException) even if the query leads to huge result set.
(We had a case leading to an out of memory exception cause the query found about 50000 rows. Unfortunately we could not use a UniqueConstraint.)
The text was updated successfully, but these errors were encountered: