This content has been marked as final.
Show 4 replies
-
1. Re: Fetching...Lazy but initialized?
tsar_bomba Apr 13, 2006 3:17 PM (in response to tsar_bomba)So, it's been a couple of days and noone has answered me yet.
Is "pre-loading" a lazily-fetched collection not essentially the same as just using eager fetching?
Thanks! -
2. Re: Fetching...Lazy but initialized?
scraatz Apr 25, 2006 3:57 AM (in response to tsar_bomba)From what I understand the effect is the same, but the EJB3 engine generates different SQL-code. When you eager-load all the data is fetched in one big SQL-JOIN query. A lazily fetched relation is queried in a separate SQL query. If you always need the related entities it should be faster to eager-load.
-
3. Re: Fetching...Lazy but initialized?
ejb3workshop Apr 25, 2006 10:20 AM (in response to tsar_bomba)There is a problem with having multiple eager many relationships within the same bean.
http://jboss.org/index.html?module=bb&op=viewtopic&t=76796
Alex
ejb3workshop.com -
4. Re: Fetching...Lazy but initialized?
tsar_bomba Apr 26, 2006 12:04 AM (in response to tsar_bomba)Thanks *very* much for the info, everyone - very helpful!