And, please try this if you still have no ideas. I don't know the case you faced, but I think it helps.
https://stackoverflow.com/questions/3784197/efficient-way-to-do-batch-inserts-with-jdbc
And, please try this if you still have no ideas. I don't know the case you faced, but I think it helps.
https://stackoverflow.com/questions/3784197/efficient-way-to-do-batch-inserts-with-jdbc