JDBC prepared statement, batch insert performance improvement

651 Views Asked by At

I have a huge set of data, and i want to insert them on database at once, i used prepared statement with batch insert but it takes around 15 seconds on pstmt.executeBatch(). I'm looking for best results (around 5 seconds), how could i achieve my goal?

auto commit is disabled.

number of insert statements: 100000 statement.

0

There are 0 best solutions below