Transactions Flashcards
What is an major objective in developing a database?
A major objective in developing a database is to enable many
users to access shared data concurrently (samtidigt).
What is Transaction processing?
Transaction processing is a style of computing that divides work
into individual,indivisible operations called transactions.
what does Transaction processing systems attempt to provide?
Transaction processing systems attempt to provide fast and
predicable response time to requests
what is Transaction processing designed for?
Transaction processing is designed to maintain a system’s
integrity in a known, consistent state, by ensuring that
interdependent operations on the system are
- either all completed successfully or
- all cancelled successfully
What is the definition of Concurrency control?
Definition of Concurrency control:
- The process of managing simultaneous operations on the database
without having them interfere with one another.
What is a transaction?
Informally: A transaction is an execution of a program that accesses a shared database
what is The objective of a concurrency control protocol?
The objective of a concurrency control protocol is to schedule transactions in such
a way as to avoid any interference between them:
What is one obvious solution to reach the objective of a concurrency control protocol ?
One obvious solution to reach the concurrency control protocol objective is to allow ONLY ONE transaction at the time to execute:
What are the pros and cons of Locking?
Locking Protocols \+ good for update intensive applications - locking overheads - not free from deadlock
What are the pros and cons of Timestamping?
Timestamp Protocols \+Freedom from deadlocks \+No transaction has to wait for other transaction \+Transactions do not block each other => better concurrency than locking protocols \+An aborted transaction is restarted with a new timestamp
- Can result in starvation of long transaction: — a long transaction can be restarted all the time and never be completed if shorter transactions completes all the time
What does ACID stand för?
A = Atomicity C = Consistency I = Isolation D = Durability