-->
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: Saving a List of ojbects
PostPosted: Mon Jul 16, 2007 6:34 pm 
Newbie

Joined: Mon Jul 16, 2007 6:28 pm
Posts: 3
Hello,

I have a Java List of 2500+ objects, is there a way to pass the List to Hibernate and have it save the entire List in 1 call, or do I have to loop through the List and save each object 1 at a time? I'm currently doing the loop but it takes a long time and am looking for a faster way to save a large List of objects.

Thanks,

Karl


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 17, 2007 10:35 am 
Red Hat Associate
Red Hat Associate

Joined: Mon Aug 16, 2004 11:14 am
Posts: 253
Location: Raleigh, NC
Karl,

Read all about batch inserts here:
http://www.hibernate.org/hib_docs/v3/re ... ch-inserts

HTH,

Chris

_________________
Chris Bredesen
Senior Software Maintenance Engineer, JBoss


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.