-->
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.  [ 6 posts ] 
Author Message
 Post subject: Lazy Loading vs. Fetch=Join in 1.2.0 Beta
PostPosted: Mon Dec 04, 2006 4:57 am 
Newbie

Joined: Mon Jan 30, 2006 2:26 pm
Posts: 9
Location: Germany
Concerning NHibernate 1.2.0 Beta:

Can I now load more than a single one-to-many mapped collection at once? E.g. using fetch=join? Or does the restriction from 1.0 still apply?

Regards,

Max


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 04, 2006 5:16 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
The restriction still applies.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 04, 2006 7:28 am 
Newbie

Joined: Mon Jan 30, 2006 2:26 pm
Posts: 9
Location: Germany
Is there any way around this?

Where would I start/look into to get an idea of how to get a solution?

Regards,

Max


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 04, 2006 1:40 pm 
Senior
Senior

Joined: Sat Mar 25, 2006 9:16 am
Posts: 150
Why would you want to?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 04, 2006 3:06 pm 
Newbie

Joined: Mon Jan 30, 2006 2:26 pm
Posts: 9
Location: Germany
Well, given a rather complex entity with a few child object lists, I would like to have only one call to the database to fill a detail view.

Take following entity:

Product
1 - N Pictures
1 - N Features
1 - N Prices
1 - N ...

At the moment, for n child object lists, displaying this entity in a form needs n-1 calls to the db which is quite a performance killer...


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 04, 2006 3:39 pm 
Senior
Senior

Joined: Sat Mar 25, 2006 9:16 am
Posts: 150
Hmmm, I see your point, although I doubt you are really suffering performance issues because of this.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 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.