#JPA Hibernate Slow database request
1 messages · Page 1 of 1 (latest)
<@&1004656351647117403> please have a look, thanks.
Do you know which portion is slow? Getting a connection, the query itself, processing theresponse, ... ?
As a basic sql query even with 40+ joins should not be slow, considering that it selects based on already indexed primary keys.
I think that response processing as it should process this object, but it's very huge itself.
E.g., an object with objects where each has more objects and so...
Measure and observe, don't guess.
Huh, there is no way to measure a crud
How so? There are plenty of ways to measure how much time was spent on network traffic, on the database, etc..
I already know that a certain spring jpa repo is slow, comparing with others, because there are no problems in another part of an application with another repos
Increase logging so that you can log the statement plus parameters and do an explain plan later on