• Post Reply Bookmark Topic Watch Topic
  • New Topic

Bulk Insert in JPA 2

 
Aalok Singh
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ranchers,

How to perform bulk insert in JPA 2..?



Regards,

Aalok
 
Ivan Korhner
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are a few ways to optimize bulk insertion in Hibernate( flush manually, staless sessions, allocate ids instead of fetching everytime, etc). You can check this link for various tips with performance gains measurements:

http://korhner.github.io/hibernate/hibernate-performance-traps-part-2/

Good luck!
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!