Spring Data JPA N+1 queries: find them, fix them, test them
A list endpoint firing 11 SELECTs instead of 1? Find N+1 in the Hibernate 7 log, fix it with JOIN FETCH, @EntityGraph or batch fetching, and test the count.
Read MoreA list endpoint firing 11 SELECTs instead of 1? Find N+1 in the Hibernate 7 log, fix it with JOIN FETCH, @EntityGraph or batch fetching, and test the count.
