Complete the code to describe the main idea of optimistic concurrency control.
In optimistic concurrency control, transactions proceed without locking and conflicts are checked at [1].
Optimistic concurrency control allows transactions to run without locks and checks for conflicts only when the transaction tries to commit.
Complete the sentence about the main phases of optimistic concurrency control.
The three phases are read, [1], and validation.
Optimistic concurrency control has three phases: read, write, and validation.
Fix the error in the statement about conflict detection in optimistic concurrency control.
Conflicts are detected during the [1] phase, which ensures no overlapping writes.Conflicts are detected during the validation phase to ensure no conflicting writes occurred.
Fill both blanks to complete the description of optimistic concurrency control phases.
Transactions first [1] data without locking, then [2] changes before validation.
Transactions read data without locking and then write changes before validation.
Fill all three blanks to complete the optimistic concurrency control validation step.
During validation, the system checks if any transaction [1] the same data, if so, the current transaction [2] and must [3].
Validation checks if any transaction wrote the same data. If yes, the current transaction aborts and must read again.