Transaction processing and serializability

December 4, 2026 · Team EasyExamNotes · 3 min read (est.) · 0 comments

Share on WhatsApp

← RGPV CS-502 DBMS June 2026 solved question paper

← RGPV CS-502 DBMS December 2025 solved question paper

RGPV CS-502 (GS) | June 2026 | Q7(a) | 7 marks (inferred)

Question (restated): Explain transaction processing and serializability.

Answer

T1; T2 (acyclic edge T1 to T2)
Transaction processing and serializability

A transaction is a logical unit of database work, such as transferring money from one account to another. It begins, reads or writes data, and commits on success or rolls back on failure. ACID properties require atomicity, consistency, isolation and durability. The transaction manager coordinates execution, concurrency control and recovery.

A schedule is an ordering of operations from transactions that preserves each transaction’s internal order. A serial schedule runs one transaction completely before another. A serializable schedule may interleave operations but has an effect equivalent to some serial schedule under the relevant equivalence criterion.

Conflict serializability considers operations of different transactions on the same item where at least one is a write. Construct a precedence graph with transactions as vertices and edges from earlier conflicting operations to later ones. A schedule is conflict serializable exactly when this graph is acyclic. For r1(X), w1(X), r2(X), w2(X), the edge T1→T2 gives serial order T1,T2. For r1(X), r2(Y), w1(Y), w2(X), the edges T2→T1 and T1→T2 form a cycle, so the schedule is not conflict serializable.

View serializability preserves initial reads, reads-from relationships and final writers. It includes all conflict-serializable schedules and some schedules involving blind writes that are not conflict serializable.

Concurrency protocols such as two-phase locking and timestamp ordering enforce appropriate ordering. Serializability alone does not guarantee recoverability; commit dependencies must also be managed. Strict schedules prevent other transactions from reading or overwriting uncommitted writes and simplify recovery.


December 2025 – Q6(a)

Question (restated): Explain transaction processing and distinguish conflict and view serializability.

A transaction is a logical unit of database work with read, write, commit and abort operations. Transaction processing maintains atomicity, consistency, isolation and durability. A schedule interleaves operations while preserving each transaction’s internal order. A serial schedule runs one transaction completely before another; a serializable schedule is equivalent to some serial schedule under the relevant equivalence criterion.

Conflict equivalence preserves the order of conflicting operations: operations from different transactions on the same item with at least one write. A schedule is conflict serializable exactly when its precedence graph is acyclic. View equivalence preserves initial reads, which transaction supplies each read, and the final writer of every item.

Consider W1(X), W2(X), W1(X). Its precedence graph contains both T1 → T2 and T2 → T1, so it is not conflict serializable. With no reads and T1 as final writer, it is view equivalent to serial order T2 then T1. This illustrates how blind writes can produce view-serializable schedules that are not conflict serializable. Every conflict-serializable schedule is view serializable, but the converse is false.

← RGPV CS-502 DBMS June 2026 solved question paper

← RGPV CS-502 DBMS December 2025 solved question paper

Discussion

Ask a question, share your thoughts or report an error.

Sign in to participate in the discussion.

Join the discussion