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 MorePractical SQL for application developers, with PostgreSQL as the default engine: reading EXPLAIN, choosing indexes, transactions and locking, schema migrations, and local storage on mobile.
1 post
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 More