subselect « Batch « JPA Q&A





1. Hibernate Subselect vs Batch Fetching    stackoverflow.com

Hibernate provides (at least) two options for getting around the N+1 query problem. The one is setting the FetchMode to Subselect, which generates a select with a IN-clause and a subselect ...