aspose file tools*
The moose likes Object Relational Mapping and the fly likes batch insert/update + Hibernate - ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "batch insert/update + Hibernate - ?" Watch "batch insert/update + Hibernate - ?" New topic
Author

batch insert/update + Hibernate - ?

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1373
How can i do batch insert/update using hibernate ?
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

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.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: batch insert/update + Hibernate - ?