Slow Performance with Spring Boot 4 & Hibernate 7.2

We’re currently upgrading our project with Spring Boot 3.5 with Hibernate 6.4 to Spring Boot 4.0 with Hibernate 7.2.

The performance is 5-10 times slower than before. The queries against the database itself are faster as before, but the time between the queries is increased. It looks like that hibernate spends much more time in object hydration as before. A query with 8.000 results tooks 700ms with Hibernate 6 and 9s with Hibernate 7.

Thanks for the report, but we will need more details than that.

Please try to create a reproducer with our test case template and if you are able to reproduce the issue, create a bug ticket in our issue tracker and attach that reproducer.