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: many-to-one with not-found='ignore' problem
PostPosted: Wed Oct 29, 2008 9:02 am 
Newbie

Joined: Thu Feb 07, 2008 6:48 am
Posts: 14
Hello,

I'm using the nHibernate v2.0.1.4000 version.
I have the following piece of mapping-code:

<many-to-one name="OutTransport" class="Transport" not-found="ignore" update="false" cascade="none">
<column name="`Out Type Move`" />
<column name="`Out Transport`" />
</many-to-one>

When using the not-found=ignore attribute in a many-to-one, NHibernate is issuing a query for every element not found in the collection, even when using an outer join.

In some cases this causes a significant performance overhead.

Is there a solution to this problem?

Regards


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.