• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

batch insert/update + Hibernate - ?

 
kri shan
Ranch Hand
Posts: 1460
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can i do batch insert/update using hibernate ?
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hibernate is not the best choice if you need to do large scale batch processing. Better are the database's own bulk loading tools.

However, if you do want to do it, the documentation has a section on bacth processing. Basically, not much is different, you just need to remember to flush the session frequently to avoind OutOfMemoryErrors.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic