| Author |
fetch mode discussion
|
Wendy Gibbons
Bartender
Joined: Oct 21, 2008
Posts: 1098
|
|
is there anywhere on the web i can find a good discussion on when to do lazy and when to do eager fetching please?
or could we have one here...
I the application i have inherited has all fetch.eager, and it keeps running out of memory, i feel this may be why
|
 |
Paul Sturrock
Bartender
Joined: Apr 14, 2004
Posts: 10336
|
|
Almost certainly!
The Hibernate docs discuss the basics, and there has been a lot of discussion in this forum so its worth a search here.
|
JavaRanch FAQ HowToAskQuestionsOnJavaRanch
|
 |
James Sutherland
Ranch Hand
Joined: Oct 01, 2007
Posts: 550
|
|
Some info here:
[url]
http://en.wikibooks.org/wiki/Java_Persistence/Relationships#Lazy_Fetching[/url]
I would recommend always using LAZY on all relationships.
|
TopLink : EclipseLink : Book:Java Persistence : Blog:Java Persistence Performance
|
 |
 |
|
|
subject: fetch mode discussion
|
|
|