Consider transactions T1: r1(x); r1(z); w1(z) T2: r2(y); r2(z); w2(z) T3: r3(y); r3(x); w3(y), and schedules S1: r1(x); r3(y); r3(x); r2(y); r2(z); w3(y); w2(z); r1(z); w1(x); w1(z) and S2: r1(x); r3(y); r2(y); r3(x); r1(z); r2(z); w3(y); w1(x); w2(z); w1(z). Which statement is TRUE?
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: A. Only S₁ is conflict-serializable
Explanation
S1: r2(y) before w3(y) gives T2 → T3; r3(x) before w1(x) gives T3 → T1; w2(z) before r1(z)/w1(z) gives T2 → T1. No cycle, so S1 is conflict-serializable (T2, T3, T1). S2: r1(z) before w2(z) gives T1 → T2, but r2(z) before w1(z) gives T2 → T1 — a cycle, so S2 is not.
More Database Management Systems questions
- Arrange the following phases of database design in the correct order : (A) Physical Design (B) Conceptual Design (C) Logical Design (D) Req…
- Which of the following statements is/are false? A. A user can assign privileges to any user on any relation. B. A user can assign privilege…
- Which of the following tables is likely to have a foreign key referencing another table in the database system implemented by the company ?
- Which of the following best describes the relationship between the "orders" table and the "Customers" table in the company's database syste…
- Match List - I with List - II.
- Find the number of tuples obtained by applying the right outer join X ⟖ (X.S = Y.S) Y.