This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

fetch mode discussion

 
Wendy Gibbons
Bartender
Posts: 1110
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