Concept
Databases

Optimistic vs pessimistic locking

When to lock the row, when to bet that nobody else will, and how to detect the bet you lost.

✍️

This concept is being written.

The detailed explanation, examples, and diagrams for this topic are not published yet. In the meantime, here is what you can do: