mysql - Confusion regarding INNODB locking -
When I run 'Select from the table' on an INNODB table, does the table lock become insensitive? Does this mean that during the time, MySQL takes the result set back, can not I issue an update statement in the table?
The entire table will be locked in shared mode as I have understood, until the result is not returned to the set, the update command can be executed only after that.
INADB uses a feature.
Locking in shared mode is not necessary, because Then the answer is 'no', while updating a MVCC will keep the version of the previous version of your
SELECT statement if necessary Be able to
SELECT statement, there will be no need to lock a row while updating. This is, as long as this particular
SELECT statement like
SELECT .. FOR UPDATE is.
Comments
Post a Comment