NHibernate Batching for Sybase -
when setting ado.batch_size property on nhibernate configuration ignored. if debug session shows batch size 1 though set 25.
does nhibernate 3.3.3 support batching sybase anywhere?
no batching supported sql server client , oracle client. sybase driver uses nonbatchingbatcher means no batching.
extended driver use batching
i've created batcher nhibernate http://pastebin.com/gbps6w4a
sample configuration
key line db.driver
configuration.databaseintegration( db => { db.connectionstring = "some connection string" db.keywordsautoimport = hbm2ddlkeywords.none; db.driver<sybasesqlanywheredotnet4withbatcherdriver>(); db.dialect<sybasesqlanywhere12dialect>(); db.batchsize = 25; db.logsqlinconsole = showsqlinconsolewindow; db.logformattedsql = showsqlinconsolewindow; });
Comments
Post a Comment