-
Notifications
You must be signed in to change notification settings - Fork 527
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
duplicate records fetched while using findall method with specification and payable #6
Comments
Thank you for the comment. Well, most probably the issue is caused by a missing explicit sort. Try to add sort by ID (I assume this is a primary key), since the "name" has duplicates. I hope this helps. |
Thanks for your response. I have tried by providing the sort option but still getting the same response. |
Ok, I'll look into it. Please, tell me what database vendor you used for this test? |
I have used mysql database. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm seeing some weird issue while working with findAll() method with the specification and pageable arguments. If I set the lower page i.e. 0 size i.e. 10 then I don't have any issues. but if I set the page i.e. 0 and size to 30 I'm getting the duplicate records.
e.g.
I have the following in the database.
in the service class we are trying to fetch data using the following code:
http://localhost:8080/emp?name=test&page=0&size=10
http://localhost:8080/emp?name=test&page=0&size=20
Spring boot version : 2.2.2.RELEASE
The text was updated successfully, but these errors were encountered: