Transaction Management Unit III
Transaction Management Unit III
Transaction Management
Transaction management
The nice aspect of this historical perspective is that it does
indeed encompass some of the fundamental properties of
a transaction (atomicity and durability) as the term is used
in database systems.
A transaction takes a database, performs an action on it,
and generates a new version of the database, causing a
state transition.
In general, a transaction is considered to be made up of a
sequence of read and write operations on the database,
together with computation steps.
Another definition of a transaction is that it is a single
execution of a program .
Properties of transaction
Flat Transactions
Nested Transactions
Workflows
Human-oriented workflows,
System-oriented workflows
Transactional workflows
Flat transactions& Nested
Transactions
Flat transactions have a single start point (Begin
transaction) and a single termination point (End
transaction).
Most of the transaction management work in
databases has concentrated on flat transactions.
An alternative transaction model is to permit a
transaction to include other transactions with their
own begin and commit points. Such transactions are
called nested transactions.
These transactions that are embedded in another one
are usually called subtransactions.
Contd..
Nested transactions have received considerable interest as a
more generalized transaction concept.
The level of nesting is generally open, allowing
subtransactions themselves to have nested transactions.
The advantages of nested transactions are the following:
First, they provide a higher-level of concurrency among
transactions.
A second argument in favor of nested transactions is related
to recovery.
Finally, it is possible to create new transactions from
existing ones simply by
inserting the old one inside the new one as a subtransaction.
Workflows