posted 17 years ago
Hi.
I have been reading Hibernate In Action book and a question comes to my mind .
This book suggests a solution to n+1 problem :
Make your default fetching strategy is lazy (at mapping level) then override it with eager fetching in code.
Well, it seems to me that this approach imposes extra load on the database and the application in overall.
Any clarfications ?