819 - 855: Data Layouts, OLTP/OLAP, In-Memory DBS Flashcards

1
Q

What is the main feature of Conservative 2PL (C2PL)?
A. Locks are released at the end of transactions
B. All locks are requested before execution begins
C. Only write locks are used
D. Transactions are always serializable

A

B. All locks are requested before execution begins

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Explain the purpose of Two-Phase Locking (2PL).

A

2PL ensures CSR by dividing a transaction into two phases: a growing phase (acquiring locks) and a shrinking phase (releasing locks).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is Conservative 2PL (C2PL)?

A

In C2PL, a transaction requests all necessary locks upfront before execution, avoiding deadlocks but limiting practicality.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is Strict 2PL (S2PL)?

A

S2PL requires that all exclusive locks be held until the transaction commits or aborts, ensuring recoverable histories.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Define Recoverable History.

A

A history is recoverable if a transaction only commits after all transactions it depends on have committed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is ACA (Avoid Cascading Aborts)?

A

ACA ensures that no transaction reads uncommitted data, preventing cascading aborts.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a strict history?

A

A history where transactions accessing modified data by others do so only after the modifying transaction has committed or aborted.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the relationship between CSR, VSR, and FSR?

A

CSR ⊂ VSR ⊂ FSR, meaning CSR is the most restrictive and practical, while FSR is the least restrictive but not suitable for avoiding anomalies.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does the Serializability Theorem state?

A

A history belongs to CSR if and only if its conflict graph is acyclic.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly