Re: Minimize row locking for update statement
gaetano giunta Wrote:
-------------------------------------------------------
> This is what I am currently looking at. Enabling
> the lock monitor, I tested the simple query "
> update ezdfsfile set expired=1, mtime=-mtime where
> name_trunk =
> 'var/ezflow_site/cache/content/ezflow_site/1/186-'
> and expired = 1", and I see there are 4 locks
> held:
> - table
> - pk
> - index "ezdfsfile_name_trunk" (record)
> - index "ezdfsfile_name_trunk" (gap before rec)
Could you be more precise ?
What we know is that you run the above query in the session 1.
What was the isolation level in this session 1 ?
In the same time you run the other query in the session 2.
What query exactly did you run ? Was it 'SELECT ... FOR UPDATE' ? Or something else ? And What was the isolation level in the session 2 ?
Subject
Views
Written By
Posted
3360
February 14, 2012 11:17PM
1266
February 15, 2012 11:12PM
1245
February 17, 2012 06:21AM
Re: Minimize row locking for update statement
1088
February 17, 2012 04:13PM
1181
February 18, 2012 02:39AM
6018
February 18, 2012 12:56PM
1943
February 21, 2012 04:56AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.