Optimize JPA one to many with fetch

┬áN+1 We all know the famous N+1 problem in the ORM world where the generated sql is not that optimized that we have to get the child collections with N number of separate sql query which leads to serious performance problem if there are many levels of objects tree. So we can fix the problem…