Best JPA ID Generation Strategy for Batch Insertion
user6494 Published in September 20, 2018, 12:44 pm
I am facing an issue while inserting 100 000 records at once using spring data JPA repository. When we execute repo.save(List<Objs>) it is taking a lot of time if we use Sequence generator as it queries the database for the nextval. I am using Oracle, which ID generation is best here?