You're opening a new session in a loop? That seems quite extreme! I think
we need to get a better picture of what you're doing.

/G


2013/8/30 Nicolas Vinot <[email protected]>

> I commit my transaction and so close my session each lap.
> And the Foo fetch is the first request, before any Bar creation in the
> session
>
> for(…) {
>     using(var session = sf.OpenSession()) {
>         using(var trx = session.BeginTransaction()) {
>             var foo = session.Get(…);
>             for(…) {
>                 session.Save(new Bar());
>             }
>             trx.Commit();
>         }
>     }
> }
>
> So at the SELECT request, session may be empty and without any dirty check…
>
> Trying FlushMode = Never seems better. Will try on real app.
>
> --
> You received this message because you are subscribed to the Google Groups
> "nhusers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/nhusers.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to