Can MySqlBulkLoader be used with a transaction? I don't see a way to explicitly attach a transaction to an instance of the loader. Is there another way?
As stated here by member of MySQL documentation team:
It's not atomic. The records loaded prior to the error will be in the
table.
Work arround is to import data to dedicated table and then execute INSERT INTO ... SELECT ...
which will be atomic operation. On huge data sets this is potential problem becasue of long transaction.