MySQL Forums
Forum List  »  InnoDB

Re: HOW: SELECT ...FOR...UPDATE SKIP LOCKED but allow INSERT
Posted by: Peter Brawley
Date: January 28, 2019 08:19PM

According to https://stackoverflow.com/questions/42316848/why-does-mysql-explicit-predicate-locking-disallow-insert-statements-outside-of, changing the isolation level to read Committed resolves this because ...

- under REPEATABLE READ each lock acquired during a transaction is held for the duration of the transaction.

- under READ COMMITTED the locks that don't match the scan are released after the STATEMENT completes.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: HOW: SELECT ...FOR...UPDATE SKIP LOCKED but allow INSERT
163
January 28, 2019 08:19PM


Sorry, only registered users may post in this forum.

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.