Hot answers tagged jdbc
Have you tested or would it be possible to drop indexes on the destination DB table(s) where you are inserting into, insert those into smaller batched chunks (optimal as indicated above), and then rebuild the indexes on the destination table(s) once all inserts are complete? May be something easy enough to test to confirm.
Consider batching your commits. A batch size of 1024 is a good starting size. Change batch sizes until you reach your optimum throughput.
Only top voted, non community-wiki answers of a minimum length are eligible