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().
D. Vallet, M. Fernández, P. Castells, P. Mylonas, and Y. Avrithis. 21st National Conference on Artificial Intelligence - 3rd International Workshop on Modeling and Retrieval of Context, Boston, USA, 16-17 July 2006, (2006)