Re: pessimistic locking

2007-02-13 Thread Abe White
First, I want to point out that I was wrong about needing to set a lock level in code during an optimistic transaction. So actually for us to run the benchmark, the only necessary setting is: openjpa.LockManager: pessimistic Contrary to what Patrick said and I backed up, we don't need to set

Re: pessimistic locking

2007-02-13 Thread Craig L Russell
This benchmark runs best with a combination of optimistic locking (most cases) and pessimistic locking (some specific uses identified explicitly in the code). Where concurrency is low, an optimistic approach works well. In specific cases, optimistic results in bad performance due to the

RE: pessimistic locking

2007-02-13 Thread Patrick Linskey
> Sent: Tuesday, February 13, 2007 10:59 AM > To: open-jpa-dev@incubator.apache.org > Subject: Re: pessimistic locking > > We'd also have to set the LockManager property to pessimistic to get > database locks. And just to build on what Patrick is saying: > O

Re: pessimistic locking

2007-02-13 Thread Abe White
We'd also have to set the LockManager property to pessimistic to get database locks. And just to build on what Patrick is saying: OpenJPA can do locking within optimistic transactions on individual instances, but you have to set a lock level on the FetchPlan in code, which I don't think we

RE: pessimistic locking

2007-02-13 Thread Patrick Linskey
o:[EMAIL PROTECTED] > Sent: Tuesday, February 13, 2007 10:22 AM > To: open-jpa-dev@incubator.apache.org > Subject: Re: pessimistic locking > > Patrick, > Just to clarify... If we set up OpenJPA in this manner > (Optimistic to false > and the Read and Write Lock levels to Non

Re: pessimistic locking

2007-02-13 Thread Kevin Sutter
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Monday, February 12, 2007 1:51 PM > To: open-jpa-dev@incubator.apache.org > Subject: Fwd: pessimistic locking > > Comments from the experts here? > > Craig > > > Begin forwarded message: > > > From: Scott O

RE: pessimistic locking

2007-02-12 Thread Patrick Linskey
ebruary 12, 2007 1:51 PM > To: open-jpa-dev@incubator.apache.org > Subject: Fwd: pessimistic locking > > Comments from the experts here? > > Craig > > > Begin forwarded message: > > > From: Scott Oaks <[EMAIL PROTECTED]> >

Fwd: pessimistic locking

2007-02-12 Thread Craig L Russell
Comments from the experts here? Craig Begin forwarded message: From: Scott Oaks <[EMAIL PROTECTED]> Date: February 12, 2007 11:45:52 AM PST To: [EMAIL PROTECTED] Subject: pessimistic locking Reply-To: [EMAIL PROTECTED] The SPEC organization is in the process of developing a JPA

Re: pessimistic locking

2007-01-12 Thread Marc Prud'hommeaux
I think you also want to set "openjpa.Optimistic" to "false". That will default to non-optimistic transactions. Setting the other properties ("openjpa.LockManager", "openjpa.ReadLockLevel", "openjpa.WriteLockLevel") are probably unnecessary. On Jan 12, 2007, at 11:56 AM, Ritika Mahesh

pessimistic locking

2007-01-12 Thread Ritika Maheshwari
I have the following properties defined in my persistence.xml Even then the sql for the query em.createQuery("select object(o) from Neworders o where o.no_w_id=:warehouseId and o.no_d_id=:districtId ") does not have the With RS USE AND KEEP UPDATE LOCKS. However if I make the followi