This is a follow-up question for Transaction isolation levels relation with locks on table
I wonder about the speed differences between the isolation levels. What speed benefits can you achieve switching between the levels? Can you demonstrate when each of these can lead to lock waiting comparing to the other?
I also wonder: Doing this update query:
UPDATE product SET sold = 1 WHERE id = 10 AND sold = 0;
If someone modifies the flag sold
during execution of the query, would it have different consequences with these acquisition levels?