-->
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: good batch size for flushToIndexes.
PostPosted: Wed Aug 13, 2008 1:45 pm 
Regular
Regular

Joined: Tue Apr 01, 2008 5:39 pm
Posts: 61
i was wondering in general what would be a good batch size to use for flushToIndexes.

case A.) you have 2 million items.

case B.) you have 1 billion items.

case C.) you have 5 billion items.

thanks


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 14, 2008 5:49 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi,
it really depends on the amount of RAM available to your JVM and the complexity of your entities, it is really different if you index just one simple field or if you have several collections to index as embedded fields.
You should experiment, and probably use a profiler to help identify the bottleneck.

Generally you want to have the batch size as high as possible, but without running out of memory.

_________________
Sanne
http://in.relation.to/


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.