MySQL Forums
Forum List  »  InnoDB

Re: Minimize row locking for update statement
Posted by: irek kordirko
Date: February 17, 2012 04:13PM

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 ?

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Minimize row locking for update statement
1088
February 17, 2012 04:13PM


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.