Transactions Flashcards
A __________ is a sequence of operations on database objects
transaction
All operation in a transaction formed together is a single ________ _____
logical unit
What are 5 states in the life-cycle of a transaction?
- Active
- Partially committed
- Failed
- Committed
- Aborted
An active transaction is in ______ execution state
normal
A partially committed transaction just had its _____ statement executed
last
A failed transaction cannot _______
proceed
An aborted transaction _____ _____ the database
rolls back
A committed transaction _______ and its changes are ________
succeeded, permanent
What is a schedule?
a sequence S of operations from a set of transactions
where the order of operations of each Ti is the same as in S
When is a schedule serial?
All operations of each transaction are executed before or after all operations of another
Concurrent execution _________ different transaction operations
interleaves
Concurrent execution increases ________ and reduces ______ _____
throughput, response time
What does ACID stand for?
Atomicity (all or nothing)
Consistency (DB good after transaction)
Isolation
Durability (changes persist)
The only important operation in scheduling are _____ and ____
read, write
When are two operation conflicting?
They refer to the same data item and one or more of them is a write
Two consecutive ______________ operation can be swapped
non-conflicting
A schedule is ______ ___________ it it can be turned into a serial schedule by a sequence of swaps
conflict serializable
In a precedence graph, each node is a _________ and each edge is a _______
transaction, conflict
A schedule is conflict serializable IFF graph is ______
acyclic
If one transaction aborts, we _____ the other one
abort
A schedule is unrecoverable if one T aborts and the other ______
commits
A shared (read) lock can be acquired by ______ transactions
multiple
An exclusive (read/write) lock can be required by only ____ transaction
one
Two locks on the same data item are _________ of one of them is exclusive
conflicting