Anyone tried to enable batching support using Fluent NHibernate in pair with SQLite? I tried
Fluently.Configure()
.Database(SQLiteConfiguration.Standard
.UsingFile(CreateOrGetDataFile()).AdoNetBatchSize(128))
.Mappings(
m => m.FluentMappings.AddFromAssembly(Assembly.Load("Sauron.Core"))
.Conventions.Add(PrimaryKey.Name.Is(p => "Id"), ForeignKey.EndsWith("Id")))
.BuildSessionFactory();
but didn’t work.
also I tried setting batch size on ISession and IStatelessSession but I got exception saying that batching is disabled.
Batching is not yet supported for SQLite. It’s only implemented for SQLServer and Oracle.
You don’t necessarily have to wait for that to happen, though. You can implement
IBatcherFactoryandIBatcher.