-->
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: jdbc batch size and pessimistic locking
PostPosted: Wed Oct 11, 2006 3:18 pm 
Newbie

Joined: Wed Oct 11, 2006 3:06 pm
Posts: 2
Location: Argentina
Hi,

I'm developing an application in witch I need to use both jdbcBatchSize (because of performance requirements) and pessimistic locking (setting the lockMode to UPDATE) using Oracle 10g.

When I enable batchSize I lose pessimistic locking (I need it to be "real time", not when hibernate decides to execute the batch of jdbc statements in the db) and when I disable batchSize I get the pessimistic locking back.

How could I have both things working at the same time?
Is there a way to specify the jdbc batch size per hibernate session? (this could help I think. I saw http://opensource.atlassian.com/project ... owse/HB-46 but it was rejected)

Thanks in advance!
Pablo.-


Top
 Profile  
 
 Post subject: Re: jdbc batch size and pessimistic locking
PostPosted: Wed Oct 11, 2006 3:53 pm 
Newbie

Joined: Wed Oct 11, 2006 3:06 pm
Posts: 2
Location: Argentina
iariap wrote:
Hi,

I'm developing an application in witch I need to use both jdbcBatchSize (because of performance requirements) and pessimistic locking (setting the lockMode to UPDATE) using Oracle 10g.

When I enable batchSize I lose pessimistic locking (I need it to be "real time", not when hibernate decides to execute the batch of jdbc statements in the db) and when I disable batchSize I get the pessimistic locking back.

How could I have both things working at the same time?
Is there a way to specify the jdbc batch size per hibernate session? (this could help I think. I saw http://opensource.atlassian.com/project ... owse/HB-46 but it was rejected)

Thanks in advance!
Pablo.-


I'm sorry, I ment optimistic locking not pessimistic.


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.