improve db write performance: add rewriteBatchedStatements property
improve db batch writing performance