Home Best JPA ID Generation Strategy for Batch Insertion
Reply: 0

Best JPA ID Generation Strategy for Batch Insertion

user322
1#
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?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.317421 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO