-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Lazy loading many-to-one assisiations
PostPosted: Wed Aug 18, 2004 3:40 am 
Beginner
Beginner

Joined: Tue May 11, 2004 8:24 am
Posts: 23
Hi,

anyone knows if there is way for bidirectional associations (many-to-one-end, not-null) to use lazy loading or caching (second level or session)?

I have a problem where linked models keep loading the same data over and over. Resulting in very huge SQL selects and slow performance.

I could not find anything in the docs.

Regards and thank you in advance for any hint,

Alex


Top
 Profile  
 
 Post subject: prefetching
PostPosted: Wed Aug 18, 2004 4:52 am 
Beginner
Beginner

Joined: Tue May 11, 2004 8:24 am
Posts: 23
I search through the net how other tools handle this:

I found that a O/R tool called Cayenne has a mechanism called "Prefetching" for handling these situations:

http://objectstyle.org/cayenne/userguide/perform/prefetching.html

Can anyone please give my hint, what to do in hibernate?

Regards,

Alex


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 18, 2004 4:59 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Critieria, FetchMode, "fetch" in HQL

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.