NOTE: I'm not looking for the answer from MSDN.
How have you gone about determining the proper ADO.NET batch size value for your given database / application? What factors led to your decision and what experience can you share?
Using Fluent NHibernate, I'm currently using something like:
var sessionFactory = Fluently.Configure().Database(
MsSqlConfiguration.MsSql2005.ConnectionString(c => c.FromConnectionStringWithKey("connString"))
.AdoNetBatchSize(50)
)
.Mappings(m => m.FluentMappings.AddFromAssemblyOf<Foo>()).BuildSessionFactory();
From my understanding this will gather up to 50 statements at a time before sending them through the Connection object to the server for processing.