Databases · Middle · Question 21 of 75

How does optimistic locking work?

Explanation

No locks are held while the user thinks, which suits web forms. Under heavy contention many retries happen, and pessimistic locking may be better.

Further reading

Problem with a question

Databases · Middle · question 21

Test yourself

Take the Databases · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz