If at all possible, cleaning the database is the preferred way.

/Oskar


Den 19 april 2012 15:52 skrev StuS <[email protected]>:
> Is that to say there is no way around this issue? This essentially creates
> the N+1 bug everyone suggest to circumvent..
> Thanks
>
>
> On Thursday, April 19, 2012 12:15:59 PM UTC+1, Oskar Berggren wrote:
>>
>> This is the way it works at the moment. I believe there are older
>> posting and open issue reports in jira on this.
>>
>> /Oskar
>>
>>
>> Den 18 april 2012 11:28 skrev Mo Sarwar <>:
>>
>>
>> > In my mapping for a table H when using References(x =>
>> > x.E).Column("E_Code").Nullable().NotFound.Ignore();  from one
>> > table (H) to
>> > another table (E), to give me a many to one relationship I get a query
>> > for
>> > each instance where the E_Code in the H table does not exist in the E
>> > table.
>> > How can I reduce the number of queries but still have E set to null if
>> > there
>> > is no match?
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "nhusers" group.
>> > To view this discussion on the web visit
>> > https://groups.google.com/d/msg/nhusers/-/hHEv4Dp7hf0J.
>> > To post to this group, send email to [email protected].
>> > To unsubscribe from this group, send email to
>> > [email protected].
>> > For more options, visit this group at
>> > http://groups.google.com/group/nhusers?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "nhusers" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/nhusers/-/e4TQi7EmxXIJ.
>
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to