Best JPA ID Generation Strategy for Batch Insertion
user322 Published in June 23, 2018, 4:30 am
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?