m8 TP Intro PDF
m8 TP Intro PDF
Transaction Processing
A very important component of any online
information system / portal
E-governance applications are in wide-spread use
Transaction
A logical unit of work to be carried out, on request by
the end-user
transfer of specified amount of money from one
account to another
making a reservation for a journey
issue a book of the library to a user
etc.,
Prof P Sreenivasa Kumar, 1
Department of CS&E, IITM.
Transaction Processing
Input:
A number of requests for services from the end-users
submitted concurrently from several input points
Action:
Carry out the requested services in a consistent manner
no seat on a journey is reserved for more than one
person
amount debited from the party A is credited to party B
Measure:
Maintain a reasonably high throughput
number of transactions completed per sec
Log Entries
beginning of a transaction
update operation details
old value, new value etc.
ending of transaction
more details later
Notation:
R(X) - transaction Reads item X
W(X) - transaction Writes item X
T1 T2 T1 T2
Not conflict- T3 T3
Conflict-
serializable serializable
Prof P Sreenivasa Kumar, 29
Department of CS&E, IITM.
Conflict Serializability and Serializability
Conflict serializability is a sufficient condition for
serializability but is not necessary!
Conflict- View
Serial Serializable
Serializable Serializable
Locking alone
Does not guarantee serializability
Above schedule continues to be non-serializable