How to prevent the infamous N+1 problem using Spring Boot integration testing, Spock and a DataSource proxy
In this post I’ll present a way of writting integration tests to prevent the infamous N+1 problem from silently creeping into your project, when someone changes the underlying query and transactional configuration of your service layer.