Only a profiler can tell you where/how the time is being spent differently.
No psychics here.

   Diego


On Mon, Jul 5, 2010 at 07:41, Henning <[email protected]> wrote:

> The query looks like this
> session.CreateCriteria<ApprovedClaim>().List();
>
> i.e, nothing advanced.
>
> Does anybody know why this is happening?
>
> Henning
>
> On 5 Jul, 12:40, Henning <[email protected]> wrote:
> > Hi
> >
> > We've noticed that when doing bulk loads with stateless session, our
> > performance actually goes down when I'd expect it to go up. (I know
> > nhibernate is not made for bulk loads).
> >
> > Our sessionfactory setup looks like this,
> >
> > var factory = Fluently.Configure()
> >
> .Database(MsSqlConfiguration.MsSql2008.ConnectionString(Config.ConnectionSt­ring))
> >                 .ExposeConfiguration(c =>
> >                 {
> >                     c.SetProperty("current_session_context_class",
> > "call");
> >                     c.SetProperty("adonet.batch_size", "1");
> >                     c.EventListeners.PreInsertEventListeners = new
> > IPreInsertEventListener[] { new EntitySaveEventListener() };
> >                     c.EventListeners.PreUpdateEventListeners = new
> > IPreUpdateEventListener[] { new EntitySaveEventListener() };
> >                     c.Interceptor = new Interceptor();
> >                 })
> >                 .Mappings(m =>
> > m.FluentMappings.AddFromAssemblyOf<CompanyMap>())
> >                 .BuildSessionFactory();
> >
> >             return factory;
>
> --
> 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]<nhusers%[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