-->
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: Performance-Questions: Many updates
PostPosted: Fri Jan 16, 2004 10:24 am 
Beginner
Beginner

Joined: Fri Nov 28, 2003 6:57 am
Posts: 20
Hi,

I'm processing a huge amount of data in a table. Every dataset which wasn't processed before is loaded, if certain requirements are met, another entity is updated, then the dataset is updated (the processed flag is set to true) and the next dataset is processed.
This all runs into a transaction and after all datasets are processed, I commit the transaction.
I've turned on the SQL-Output of Hibernate and there appear a many updates. It seems to me, that every updated dataset results in an update. I wonder if it wouldn't be better to use bulk updates. Is there a possibility to do this in Hibernate?

TIA,

Thorsten


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 16, 2004 10:29 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
No. Hiberante is not made for mass updates. Setting the batch-size might probably increase performance, but most likely not enough.


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.