781 - 818: Probabilistic Databases Flashcards
Explain the difference between physical and logical logging.
Physical Logging: Logs the exact before and after images of data.
Logical Logging: Logs operations (e.g., x += 10) rather than the exact changes, requiring a consistent database state for application.
What is the function of a buffer in database management?
The buffer temporarily stores data pages in memory, reducing disk I/O by enabling operations to occur in memory.
What is a schedule in database systems?
A. A sequence of unrelated transactions
B. A sequence of operations from a set of transactions
C. A list of aborted transactions
D. A history of failed executions
B. A sequence of operations from a set of transactions
Which anomaly occurs when two transactions write conflicting values without proper synchronization?
A. Dirty Read
B. Lost Update
C. Inconsistent Read
D. Phantom Read
B. Lost Update
What does FSR (Final State Serializability) guarantee?
A. Transactions will commit in a specific order
B. The final state matches that of a serial execution
C. No cascading aborts will occur
D. Conflicts are resolved using locking
B. The final state matches that of a serial execution
Which class of schedules is guaranteed to avoid anomalies like dirty reads and cascading aborts?
A. CSR
B. VSR
C. Strict Histories
D. OCSR
C. Strict Histories
What is a strict history?
A. A history where all transactions follow VSR
B. A history where locks are held until commit or abort
C. A history that prohibits multiple transactions on the same data
D. A history that matches its prefix to a serializable one
B. A history where locks are held until commit or abort
Define Lost Update Anomaly.
Two transactions read the same value and update it independently, resulting in the loss of one update.
What is Inconsistent Read Anomaly?
A transaction reads values that are being modified by another transaction, leading to inconsistent or partial results
What is Dirty Read Anomaly?
A transaction reads a value written by another transaction that has not yet committed, leading to potential inconsistency if the writing transaction is rolled back.
Define Final State Serializability (FSR).
FSR ensures that the final state of the database matches that of a serial execution, starting from the same initial state.
What is View Serializability (VSR)?
VSR ensures that every transaction reads values as if it were executed in a serial order, avoiding inconsistent reads.
What is Conflict Serializability (CSR)?
CSR ensures serializability by resolving conflicts using a conflict graph, which must remain acyclic.