Hi All,

I am having a metadata Table and I am running the same OQL query on the

table in a multithreaded environment. But at the time when I am iterating

over the Queryresults the code becomes serial in nature and only one thread

is executiung at that time.

Upon analyzing I found that even if in the mapping the acessmode is

"read-only", In LockEngine.java in load() method we are doing

lock = typeInfo.acquire( oid, tx, action, timeout );

and

if ( lock != null ) lock.confirm( tx, succeed ); (in the finally block)

 

This makes the code serial in nature and the performance of the application

suffers. Am I missing something?

Is there a way of avoiding this locking?

 

-Kalpesh

If the General does not believe that he can win the war,then it does not matter if his army is the world's best.
Kalpesh Patel
Sr. Software Engineer
CIStems (Software) Limited
[EMAIL PROTECTED]
IM: [EMAIL PROTECTED]
tel:
mobile:
091-0141-2771716
9829206149
Signature powered by Plaxo Want a signature like this?
Add me to your address book...
 
----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to