Database Systems: Transaction Processing
Database Systems: Transaction Processing
Database Systems
Lecture 24
Transaction Processing
Database Management
Systems
2
What is a Transaction?
• When an event in the real world changes the
state of the enterprise, a transaction is
executed to cause the corresponding change
in the database state
▫ With an on-line database, the event causes the
transaction to be executed in real time
• A transaction is an application program with
special properties - discussed later - to
guarantee it maintains database correctness
3
DBMS database
transactions
DBMS database
TP Monitor
5
System Requirements
• High Availability: on-line => must be
operational while enterprise is functioning
• High Reliability: correctly tracks state, does
not lose data, controlled concurrency
• High Throughput: many users => many
transactions/sec
• Low Response Time: on-line => users are
waiting
9
OLAP
• Analyzes historical data (terabytes) using complex
queries
• Due to volume of data and complexity of queries,
OLAP often uses a data warehouse
• Data Warehouse - (offline) repository of
historical data generated from OLTP or other
sources
• Data Mining - use of warehouse data to discover
relationships that might influence enterprise
strategy
14
Examples - Supermarket
• OLTP
▫ Event is 3 cans of soup and 1 box of crackers
bought; update database to reflect that event
• OLAP
▫ Last winter in all stores in northeast, how many
customers bought soup and crackers together?
• Data Mining
▫ Are there any interesting combinations of foods
that customers frequently bought together?