MySQL Forums
Forum List  »  InnoDB

Re: Optimistic locking/Repeatable read
Posted by: Larry Blair
Date: November 29, 2017 11:37AM

I'm guessing you mean doing the updates in a separate transaction from the selects. That would reduce the window for issues, but changes from another transaction that occur during the updates transactions would still be an issue if the values used for the where clause come from a checkpoint created when the transaction is opened.

I read the page you referred to. It's a little less ambiguous than some of the other pages I've read and seems to indicate that the values used include changes from other transactions, but it says things like, "The snapshot of the database state applies to SELECT statements within a transaction, not necessarily to DML statements." Terms like "not necessarily" or "may" are not definitive.

Options: ReplyQuote


Subject
Views
Written By
Posted
2676
November 28, 2017 05:38PM
Re: Optimistic locking/Repeatable read
813
November 29, 2017 11:37AM


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.