You just keep saying that "stateless sessions are slower" without providing
any code that we can reproduce.

   Diego


On Tue, Jul 6, 2010 at 13:05, Henning <[email protected]> wrote:

> I tried using NH Prof but with no luck. I couldn't get any clear
> answer as to why stateless sessions are slower.
>
> In fact, you'd think that stateless sessions would be much faster
> since NHibernate doesn't track them. Means less overhead and faster
> code.
>
> Henning
>
> On 6 Jul, 02:51, Diego Mijelshon <[email protected]> wrote:
> > 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]>
> <nhusers%[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]<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