-->
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: Understanding Bulk Insert
PostPosted: Fri Oct 21, 2011 5:31 pm 
Newbie

Joined: Wed Feb 23, 2011 9:25 pm
Posts: 12
After a few hours of searching with Google trying to understand how to do bulk inserts I can see that there is very little good information, where good means clear and useful. Does anyone have any good references on this subject?

As far as I can tell my problem is that my entities use an identity identifier generator so insert batching is disabled.

Also, the restrictive form of the INSERT INTO ... SELECT ... for HQL is not particularly useful.

Are there any useful ways to do bulk insert via hibernate where entities do have an identity identifier generator?

Would using the StatelessSession interface be the way to do this?

Cheers, Eric


Top
 Profile  
 
 Post subject: Re: Understanding Bulk Insert
PostPosted: Sun Jan 11, 2015 4:36 pm 
Newbie

Joined: Sun Jan 11, 2015 4:28 pm
Posts: 5
Hi kolotyluk,

Check this articles, they describe exactly what you need, with other tips and also measured performance gains of various techniques:

http://korhner.github.io/hibernate/hibernate-performance-traps-part-2/
http://korhner.github.io/hibernate/hibernate-performance-traps-part-3/

Good luck!


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.