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
|