Optimistic concurrency control and validation

Stage reads and writes privately, validate a candidate serial order, and retry the whole transaction when its read/write sets conflict. Schedules and concurrency control · Databases.

Two transactions read the same stock count and prepare different updates without holding locks. Which one can publish, and when is the conflict discovered?

What you will learn

  • Separate the read, validation, and write phases
  • Track private read/write sets and apply one bounded condition to an overlap
  • Connect workload conflict rate to abort and retry cost

Lesson outline

  1. Private work before certification
  2. Sets decide the validation result
  3. Retry is part of the protocol

22 minutes · 2 scenes · 0 predict checks · 10 quiz questions

The full lesson is available with Premium.