Open In App

Multiversion Timestamp Ordering

In the Multiversion timestamp ordering technique, for each transaction in the system, a unique timestamp is assigned before the start of the execution of the transaction. The timestamp of a transaction T  is denoted by TS(T).  For each data item X a sequence of versions <X1, X2, X3,……XK> is associated.

For each version Xi of a data item(X), the system maintains the following three fields:



To ensure serializability the following two rules are used:

Suppose a transaction T issues a read request and a written request for a data item X. Let Xi be the version having the largest Write_TS(Xi) of all the versions of X which is also less than or equal to TS(T).



Example:

Consider the following schedule

Let the timestamps of Transaction T1 and T2  be 5 and 10 respectively. These transactions perform read and write operations on a data item X.

Advantages:

Disadvantages:

Article Tags :