-->
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: Using hibernates batch
PostPosted: Thu Dec 13, 2007 11:32 pm 
Senior
Senior

Joined: Fri Jun 01, 2007 12:41 pm
Posts: 121
Has any one used batch to create, read, update and delete large collection of entities. In my application I have to load more than 10000 records at one time. Also in other place, I have insert about 5000 records.

I am thinking to use batch. Does hibernate batch works fine with Oracle 9i?
What is the optimal size for batch update for the property:
Code:
hibernate.jdbc.batch_size


This what I found:

Code:
//set the JDBC batch size (it is fine somewhere between 20-50)
hibernate.jdbc.batch_size 30

//disable second-lavel cache
hibernate.cache.use_second_level_cache false


Second Level Cache is enabled for other entities. So I cann't make it false. So I have to Cache.IGNORE during batch execution.

Please share your experiences using hibernate batch.

Thanks


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.