static ISession Session { get { return sessionFactory.GetCurrentSession();
} }
static ITransaction Trx { get { return Session.BeginTransaction(); } }

...is quite bad coding practice, IMO, hiding such operations behind
properties. But that's not the problem, of course.

I would start by removing the use of ThreadLocalSessionContext, taking more
explicit control of the session.

/G




2013/9/2 Nicolas Vinot <[email protected]>

> For information too, no such problem on Java Hibernate (code enclosed).
>
> 0 Get Foo string -> PT0.007S
> 10 Get Foo string -> PT0S
> 20 Get Foo string -> PT0.001S
> 30 Get Foo string -> PT0.001S
> 40 Get Foo string -> PT0S
> 50 Get Foo string -> PT0S
> 60 Get Foo string -> PT0S
> 70 Get Foo string -> PT0S
> 80 Get Foo string -> PT0S
> 90 Get Foo string -> PT0.001S
> 100 Get Foo string -> PT0.001S
>
> --
> Nicolas Vinot

-- 
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