Why NHibernate does not support batch processing on MySql

I found a couple of places where people say that this is not supported, but I can not find the reason.

  • Is there a problem with the mysql ado.net provider?
  • Is there anything about MySql itself?
  • Wasn't that realized?

I recently found this patch for nHibernate that can solve the problem, has anyone checked this as a workaround?

Is there another unsupported workaround?

+7
source share
2 answers
  • Wasn't that realized?

Correct answer.

A patch using a link to MySql.Data will not get into the trunk in its current form due to the reasons mentioned by Rippo.

However, you do not need to compile NH with the patch. You can simply introduce a new dispenser.

It's simple:

config.DataBaseIntegration( db => db.Batcher<MySqlClientBatchingBatcherFactory>()); 
+6
source

I suspect the real reason is that this particular patch requires a dependency on mysql.data.dll inside NHibernate itself.

See here for example. +using MySql.Data.MySqlClient;

This would mean that people not using MySql still need a DLL. I really think that is the reason. However, nothing prevents you from injecting the patch into the NHibernate source and compiling the binaries yourself. I myself use MySql and have not encountered another job ...

0
source

All Articles