-->
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.  [ 6 posts ] 
Author Message
 Post subject: bulk insert
PostPosted: Thu Apr 06, 2006 8:19 am 
Beginner
Beginner

Joined: Tue Jul 12, 2005 11:15 am
Posts: 29
Hibernate version:3.1.2

How can i enable bulk insert?
How can i make multiple insert?

We try batch insert with/without c3p0 but it's not sufficient.

Pim.

_________________
Pim.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 06, 2006 10:19 am 
Pro
Pro

Joined: Mon Jan 24, 2005 5:39 am
Posts: 216
Location: Germany
Did you try setting

hibernate.jdbc.batch_size

in you hibernate.cfg-xml ?

_________________
dont forget to rate !


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 06, 2006 10:46 am 
Beginner
Beginner

Joined: Tue Jul 12, 2005 11:15 am
Posts: 29
it's the same thing!

hibernate.jdbc.batch_size is used during load (select)
not during save (insert).

I want to do one insert with multiple statements.

Pim.

_________________
Pim.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 10, 2006 7:58 am 
Beginner
Beginner

Joined: Tue Jul 12, 2005 11:15 am
Posts: 29
Can somebody answer me?

_________________
Pim.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 11, 2006 6:17 am 
Beginner
Beginner

Joined: Mon May 02, 2005 6:17 pm
Posts: 41
Unfortunatelly hibernate does not support this yet. It has been discussed here in the forum and there is a solution although it's a hack of some sort. I had the similar problem on a project i worked on a we solved it by passing string-represented objects to stored procedure which performed actual insert. Not a very slik solution but we needed every bit of performace badly.

_________________
www.globalresearch.ca


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 11, 2006 1:18 pm 
Beginner
Beginner

Joined: Tue Jul 12, 2005 11:15 am
Posts: 29
effectively we can see in the hibernate reference manual 3
http://www.hibernate.org/hib_docs/v3/re ... ch-inserts

the sentence:

Only the INSERT INTO ... SELECT ... form is supported;
not the INSERT INTO ... VALUES ... form.

How can we by-pass it? Any explanation or URL?

Thanks.

_________________
Pim.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 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.