This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

fetch mode discussion

 
Wendy Gibbons
Bartender
Posts: 1111
Eclipse IDE Oracle VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
James Sutherland
Ranch Hand
Posts: 553
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some info here:

[url]
http://en.wikibooks.org/wiki/Java_Persistence/Relationships#Lazy_Fetching[/url]

I would recommend always using LAZY on all relationships.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic