-->
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: flush during batch processing
PostPosted: Fri Jun 30, 2006 2:04 pm 
Beginner
Beginner

Joined: Wed Aug 10, 2005 12:09 am
Posts: 30
Hibernate version: 3.1
database: Oracle 9i

Hibernate Documentation:

Quote:
13.1. Batch inserts

When making new objects persistent, you must flush() and then clear() the session regularly, to control the size of the first-level cache.

An example shows flush/clear in batches of 20 inserts.

My question is

1. is it safe to flush/clear after every 50-100 rows? (regardless of the actual batch size)

2. should the value set for hibernate.jdbc.batch_size always be used?

3. can the JDBC batch size be obtained at runtime if the hibernate.jdbc.batch_size property is not configured?

Thank-you
Paul


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.