I'm using NHibernate Profiler to see if batching really occurs. Code looks like this
Session.NHibernateSession.SetBatchSize(data.Items.Count);
foreach (var o in data.Items)
{
//something else...
base.Save(o);
}
Session.NHibernateSession.SetBatchSize(0);
Profiler still gives me error "Large number of individual writes".
BTW Im using Fluent Nhibernate
Thnx