rformance can be better if changes to the database are batched: turn off autocommit; add multiple SQL statements using the Statement.addBatch() method; execute Statement.executeBatch().
H. Kuhn, and A. Tucker. Proceedings of the Second Berkeley Symposium on Mathematical Statistics and Probability, 1950, page 481--492. Berkeley and Los Angeles, University of California Press, (1951)