This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 1371
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 - ?
 
Similar Threads
CURD operations are not working properly
clarify abt CURD by using hibernate
batch processing - Hibernate Vs JDBC ?
Enabling batch updates in hibernate
batch inset/update - hibernate ?