-->
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: updating record with 50 threads
PostPosted: Fri Apr 04, 2008 7:47 pm 
Newbie

Joined: Fri Apr 04, 2008 5:56 pm
Posts: 1
Hi,
I have a batch process running 50 threads (WorkManager in WebLogic 9).

For efficiency each thread loads 200 trades to be processed in a single flush/transaction. Now I need to accoumulate calculated charges for each trade in a single record.

While processing 200 trades, current accumulated value being added should be visible and updatable by other threads.
Application is running on a single machine.
Not sure if hibernate can and what should be done on hibernate level
I'm processing around 10 transactions per second per thread so record will be updated at 100 times per second.
I'm also planning to use batch update statements like
"update trade set tradeCount=tradeCount+?"
I'm assuming that optimistic locking will create a lot of exceptions in this scenario.

Any ideas are very welcomed.

Thanks, Igor.


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.