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.ConnectionString))
                .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].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to