Optimistic Concurrency Control - OCC Phases

OCC Phases

More specifically, OCC transactions involve these phases:

  • Begin: Record a timestamp marking the transaction's beginning.
  • Modify: Read database values, and tentatively write changes.
  • Validate: Check whether other transactions have modified data that this transaction has used (read or written). This includes transactions that completed after this transaction's start time, and optionally, transactions that are still active at validation time.
  • Commit/Rollback: If there is no conflict, make all changes take effect. If there is a conflict, resolve it, typically by aborting the transaction, although other resolution schemes are possible.

Read more about this topic:  Optimistic Concurrency Control

Famous quotes containing the word phases:

    This socialism will develop in all its phases until it reaches its own extremes and absurdities. Then once again a cry of denial will break from the titanic chest of the revolutionary minority and again a mortal struggle will begin, in which socialism will play the role of contemporary conservatism and will be overwhelmed in the subsequent revolution, as yet unknown to us.
    Alexander Herzen (1812–1870)