
Catch N+1 Queries in Spring Boot Tests by Asserting the Query Count
A naive listing of 10 customers touched lazy orders and used 11 prepared statements and 10 collection fetches. @EntityGraph and JOIN FETCH each used 1 statement and 0 collection fetches.










