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().
F. Schmidt, I. Vulić, and G. Glavas. Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, page 10725--10742. Abu Dhabi, United Arab Emirates, Association for Computational Linguistics, (December 2022)