-->
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: Batch problems
PostPosted: Mon Aug 09, 2004 10:12 am 
Newbie

Joined: Mon Jun 14, 2004 1:51 pm
Posts: 5
Hi,

We recently face a big perfromance problem when with test our application with production database.

When we loop and commit() each row of a table, it seems that speed decrease a after each commit. We start at 1 sec per entity and finish with a 10 sec per entity. I had read that flush() can decrease the performance when calling to many time, but when we commit() the flush method is supposed to be call automatically.

So did someone already had this problems and found a solution?

Maybe is the configuration of hibernate?

<!-- SQL options -->
<property name="show_sql">false</property>

<!-- Pooling -->
<property name="connection.pool_size">10</property>

<!-- JDBC options -->
<property name="jdbc.batch_size">30</property>
<property name="jdbc.use_streams_for_binary">true</property>

<!-- other -->
<property name="max_fetch_depth">1</property>
<property name="cache.use_query_cache">true</property>
<property name="cache.provider_class">net.sf.hibernate.cache.HashtableCacheProvider</property>
<property name="cglib.use_reflection_optimizer">false</property>

This is my parameter.


Thank you for your help

lud


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 09, 2004 10:14 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
What part of the red box wasn't clear?

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


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.