-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Batch create??
PostPosted: Tue Aug 09, 2005 4:44 am 
Newbie

Joined: Thu Dec 23, 2004 3:53 am
Posts: 19
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:
3.0.5

Name and version of the database you are using:
Oracle9.2

Hi All.

Can I save multiple objects of the same type in one save command, instead of saving one by one.

And another Q: if saving one by one does it goes to the DB or only in the flush action?

10x


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 09, 2005 5:19 am 
Expert
Expert

Joined: Thu Sep 04, 2003 8:23 am
Posts: 368
If you don't do queries between your save call and your flush mode is ok (default one is), then all the save are flush do the database.

You can then tune the batch size to optimize the number of network call

Seb


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.