MySQL Forums
Forum List  »  InnoDB

Preventing phantom reads with Read Commited isolation
Posted by: xxxx xxxxx
Date: May 29, 2014 01:13PM

Hello everyone.

When performing transactions i usually start the transaction with a read commited isolation , with an optimistic approach ,and than i can switch to pessimistic approach for certain database access parts of the transaction by specifying table hints to lock rows.

I learned that in innoDB we use SELECT....FOR UPDATE to prevent non repeatable read.

How about phantom rows,is there a hint to prevent insertion?

Options: ReplyQuote


Subject
Views
Written By
Posted
Preventing phantom reads with Read Commited isolation
1748
May 29, 2014 01: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.