Closed as not planned
Description
altancabal opened DATAJDBC-368 and commented
When the returned element is an entity with relationships like the LegoSet aggregate example in the [Spring Data JDBC basics repository|https://github.com/spring-projects/spring-data-examples/tree/7b0c7a539b4d02ce6e214978f5e113c959a50f8f/jdbc/basics], then a query is executed for every element in the result.
For example, if you add repository.findAll();
at the end of the customQueries()
aggregation test, after the first query is executed, an additional query is executed for every model in the result. This is very time consuming.
No further details from DATAJDBC-368