jdbc.batchUpdate(sql, rows, 500, (ps, row) -> { ps.setString(1, row.code()); ... }); Compare the timing with JPA saveAll() on the Batch insert page.