Hibernate / Hibernate interview questions
List the strategies to eliminate the N+1 SELECT problem in Hibernate.
Here are some of the strategies to solve the N+1 problem.
- pre-fetching in batches, this will reduce N+1 problem to N/K + 1 problem where K is size of batch.
- subselect fetching strategy.
- and disable lazy loading.
More Related questions...