-->
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.  [ 1 post ] 
Author Message
 Post subject: Should Nhibernate perform slower manually loading objects
PostPosted: Wed Oct 01, 2008 3:55 pm 
Newbie

Joined: Sat Jun 28, 2008 6:26 am
Posts: 4
Hi guys,

I've been banging my head over this little problem for a while now and thought it was time to hit the forums.

I'm experiencing some strange behaviour with nhibernate, well at least I think so. We have a parent object which contains two lists of child objects. Both lists are populated from the same table however are filtered by a few columns and loaded into their respective Property.

These child objects were loaded lazily however, if multiple requests came in for the parent object, with different filter criteria nhibernate would load all parent objects with the latest requested filter.

Because of this we decided to manually load these lists when they were required which was not a huge change and worked fine. However when running our time tests they started to fail. It looks like this change has more than doubled the loading times for this data.

My question is this: When loading the child objects manually through a session, should this be slower than using lazy loading.


Thanks in advance,

Craig


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

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.