-
Notifications
You must be signed in to change notification settings - Fork 359
Spring Data Jdbc findAll low performance for native application #1683
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
|
Here's the related GraalVM issue: oracle/graal#4348 |
thanks for the answers! I have changed
and run test again (the same condition as in first comment). I see a huge performance increase (from 100sed to 11 sec):
|
Thanks for the input, that's very helpful. Can you clarify whether you saw the original decreased performance on a GraalVM for JDK 17 or 21? |
Originally we found it in 17. |
Would you mind giving the latest snapshots (3.1 or 3.2) a try? I've resolved spring-data-commons#2997, which should also solve the bottleneck in |
@odrotbohm thank you so much! I tried |
Alright, I consider this fixed then for now. We're going to continue investigating how to reduce the overhead introduced by the |
Hi,
I faced a performance issue with Spring Data Jdbc with native application. It isn't easy to prepare a demo cause I found this issue in the production code. But I will try to explain.
Let's say I have a simple Spring Data repository:
In demo_table I have 600,000 records for searched statuses. For Java applications, this method takes an average of 5 sec. When I switched to the native application, this method took more than 100 sec.

I prepared a flame graph for native application:
Could you please explain if it is expected behavior for native? and maybe we can improve the performance of Spring Data somehow
The text was updated successfully, but these errors were encountered: