-->
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.  [ 1 post ] 
Author Message
 Post subject: inserting data in bulk
PostPosted: Thu Dec 11, 2008 10:24 pm 
Newbie

Joined: Sat Aug 23, 2008 3:29 pm
Posts: 7
We are new to Hibernate. I know that Session objects are not thread safe.

We create an object map and are able to divide objects in groups.
Would I be able to create multiple threads and assign a new session object and a group of objects (which are to be stored in the db) to each thread (from the same SessionFactory / second level cache) and speed up my inserts?

If yes, I also want to be able to manage the whole insert in one transation. Would this be possible using UserTransaction?

Any helpe would be greatly appreciated


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

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.