Thursday, May 19, 2022

n plus1 problem in hibernate

 N+1 problem in hibernate ?

The N+1 query problem is occur when 1 query to retrieve the parent entity and N queries to retrieve the child entities.

Solution : To Solve this isuue we can use OneToMany mapping in hibernate using Lazy loading.

No comments:

Post a Comment