Meaningless Drivel is fun!*
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: 1372
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
 
 
subject: batch insert/update + Hibernate - ?
 
Similar Threads
batch inset/update - hibernate ?
Enabling batch updates in hibernate
CURD operations are not working properly
clarify abt CURD by using hibernate
batch processing - Hibernate Vs JDBC ?