Java Mailing List Archive

http://www.gg3721.com/

Home » users.openjpa »

how to run an readonly query that won't update the version field?

Mingfai

2008-09-03

Replies: Find Java Web Hosting

Author LoginPost Reply
hi,
it seems, following every query that is in a transaction, OpenJPA
automatically issue a UPDATE statement to update the version field. (i read
from the log file) Is there any way to avoid sending the UPDATE statement
for read only query? is the issue related to Lock Manager?

the following are tried:

 - if the query is not in transaction, there won't be an automatic update
 statement.
 - Setting the readLockMode of the query fetchplan cannot disable the
 version update. (well... not sure if it's relevant. i just give it a try)


Thank you very much.

Regards,
mingfai
©2008 gg3721.com - Jax Systems, LLC, U.S.A.