More Time Stamp Scheduling




CS157b

Chris Pollett

Apr 20, 2020

Outline

Introduction

Timestamp-Based Scheduling

Rules for Timestamp-Based Scheduling -- Read and Write

Rules for Timestamp-Based Scheduling -- Commits and Aborts

Quiz

Which of the following statements is true?

  1. In two phase locking only a commit will cause transactions locks to be released.
  2. The tree protocol is used to define the compatibility matrix of an incremental lock.
  3. To implement timestamp scheduling, each transaction is assigned a timestamp, each database object is assigned both a read and write timestamp, and the DBMS maintains a commit flag for each database object.

Multiversion Timestamps (Papadimitriou Kanellakis 1984)

More on Multiversion Timestamps

What kind of writing should be rejected?

Example rejectable schedule

Timestamps versus Locking

Transactions and SQL

SQL Isolation Levels