Quantcast
Channel: MySQL Forums - InnoDB
Viewing all articles
Browse latest Browse all 1957

Preventing phantom reads with Read Commited isolation (1 reply)

$
0
0
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?

Viewing all articles
Browse latest Browse all 1957

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>