Yashaswini (DBMS)
Yashaswini (DBMS)
ww.skit.org.in 1
Sri Krishna Institute of Technology
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
INTRODUCTION
• Ensures that database transactions are executed concurrently without
violating data integrity.
• Prevents conflicts and ensures serializability.
• Maintains multiple versions of database items.
• Allows transactions to access different versions to ensure
serializability.
1 2
/skit.org.in
Sri Krishna Institute of Technology
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
TIMESTAMP ORDERING
2 3
/skit.org.in
Sri Krishna Institute of Technology
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
• Multiple versions (X1, X2, …, Xk) of each data item X are maintained.
• Each version Xi has two associated timestamps:
• read_TS(Xi): The highest timestamp of transactions that have read Xi.
• write_TS(Xi): The timestamp of the transaction that wrote Xi.
3 4
/skit.org.in
Sri Krishna Institute of Technology
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
4 5
/skit.org.in
Sri Krishna Institute of Technology
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
5 6
/skit.org.in
Sri Krishna Institute of Technology
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
6 7
/skit.org.in
Sri Krishna Institute of Technology
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
9 8
/skit.org.in