Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
9 Cards in this Set
- Front
- Back
most important heuristics of query graph
|
1. push down selects and projects
2. optimize logical plan, then physical plan |
|
ACID transactions
|
Atomic: all of the transaction is done or none is done
Consistent: if a transaction is consistent, and the database is consistent at start, it will be consistent at the end Isolation: appears to the user that only one process executes at a time Durable: effects of a process survive a crash |
|
Commit
|
causes a transaction to complete
|
|
rollback
|
causes the transaction to end, but by aborting
|
|
two phase locking
|
A transaction:
1. does not request any locks after 2. it has released a lock |
|
S1, S2 are conflict equivalent schedules if.....
|
S1 can be transformed into S2 by a series of swaps on non conflicting actions
|
|
a schedule is conflict serializable if....
|
it is conflict equivalent to some serial schedule
|
|
phases of transactions
|
1. read
2. validate 3. write |
|
to implement validation, system keeps two sets:
|
FIN: transactions that have finished phase 3 and are all done
VAL: transactions that have successfully finished phase 2 |