View Serializability in DBMS: Worked Schedule, Blind Writes and Exam Traps
Learn how to test view serializability by tracking initial reads, source writers and final writers. Two exact schedules show why blind writes matter and when read constraints make every serial order impossible.
KnowledgeGate Team
Exam prep & CS education

A cycle in a precedence graph is enough to reject conflict serializability, but it does not automatically reject view serializability. Blind writes create this gap, and comparing only the final value of an item misses two required checks. One schedule runs from X=100 to X=140, and a two-item counterexample shows when no serial order works. A valid comparison keeps transaction labels and the program order inside each transaction fixed across every candidate schedule.
What view serializability is actually asking
A schedule is an ordering of operations from two or more transactions that preserves each transaction's own program order. A serial schedule is stricter: one transaction completes all its operations before the next transaction begins.
Two schedules over the same transactions and operations are view equivalent when every read sees the same source and every data item has the same final writer. A schedule is view serializable if it is view equivalent to at least one serial schedule. The interleaved and serial schedules do not need to arrange all operations in the same order.
Use CS Fundamentals as the broader route through DBMS topics. For precedence-graph fundamentals, Schedules and Conflict Serializability owns conflict-pair detection, edge construction and topological ordering. View serializability instead tracks initial readers, reads-from sources and final-writer identity, using the graph only to expose the blind-write gap.
The three conditions for view equivalence
Check these conditions separately, in this order:
Initial reads: If
r_i(X)reads the initial value ofXin one schedule, the same read must receive the initial value in the other schedule.Reads-from: If
r_i(X)receives the value written byw_j(X), it must read from that same transactionTjin the other schedule.Final write: The transaction performing the last write on each data item must be the same in both schedules.
Suppose T2 writes X=90 and a later r1(X) returns 90. Moving T1 before T2 in a candidate serial order could make that read receive the initial value or a value from another writer. The schedules would then fail the reads-from condition even if both finished with the same numeric value of X.
This distinction is exam-safe: compare the transaction that supplied or finally wrote the value, not only the value itself. Two transactions may both write 90, but replacing one writer with the other still breaks view equivalence.
Worked example: a blind-write schedule that is view serializable
Let the initial value be X=100. The transactions, with their program order fixed, are:
T1: w1(X=120); w1(X=140)T2: w2(X=90)
Each operation is a blind write because its transaction does not read X before writing it. Consider the interleaved schedule:
S = w1(X=120); w2(X=90); w1(X=140)
Trace point | Operation | Value of X |
|---|---|---|
Initial state | None | 100 |
Step 1 |
| 120 |
Step 2 |
| 90 |
Step 3 |
| 140 |
The trace also confirms that T1's two writes remain in their original program order. The final value is 140, and the final writer is T1. Now test both possible serial orders.
In serial order T1 then T2, the operations are w1(X=120); w1(X=140); w2(X=90). It ends at 90 with T2 as the final writer, so it fails the final-write condition.
In serial order T2 then T1, the operations are w2(X=90); w1(X=120); w1(X=140). The value changes from 100 to 90, then 120, then 140. Its final writer is T1.
Neither schedule contains a read, so the initial-read and reads-from conditions are vacuously satisfied. Both S and serial order T2 then T1 have T1 as the final writer of X. Therefore they are view equivalent, and S is view serializable. Matching X=140 alone is not the proof. The writer identity and absence of read constraints complete it.

Why the same schedule is not conflict serializable
Build the precedence graph from the three writes in S. The first w1(X=120) occurs before w2(X=90). They are a write-write conflict on X, so the graph gets the edge T1 -> T2. Next, w2(X=90) occurs before the later w1(X=140). That write-write conflict adds T2 -> T1.
The two edges form a cycle. No topological ordering exists, so S is not conflict serializable. That is the decisive conflict-serializability test. S is view serializable through serial order T2 then T1, but it is not conflict serializable.
Every conflict-serializable schedule is view serializable, but some view-serializable schedules are not conflict serializable. Blind writes make the converse fail here. Conflict testing preserves the order of every conflicting pair, while view equivalence preserves read sources and final writers. This does not mean every schedule containing a blind write is view serializable.

Counterexample and a repeatable solving method
Now include reads. Start with X=10 and Y=20:
T1: r1(X); w1(Y=21)T2: r2(Y); w2(X=11)S2 = r1(X=10); r2(Y=20); w1(Y=21); w2(X=11)
Program order is preserved. The final writers are T2 for X and T1 for Y. Final writers alone cannot prove view serializability.
Because r1(X) reads the initial X=10, T1 must come before the only writer of X, which is T2. Because r2(Y) reads the initial Y=20, T2 must come before the only writer of Y, which is T1. These requirements cannot both hold.
Serial order T1 then T2 makes T2 read Y=21, not the initial 20. Serial order T2 then T1 makes T1 read X=11, not the initial 10. Therefore S2 is not view serializable, even though either serial order keeps T2 as the final writer of X and T1 as the final writer of Y.
For any such question: list what each read sees, record the writer behind every non-initial read, record each item's final writer, convert those facts into transaction-order constraints, and test candidate serial orders. Declare view serializability only after finding one serial order that satisfies every constraint.
Common traps and the correction for each
Rejecting on a conflict-graph cycle: That cycle decides conflict serializability. The blind-write schedule above shows why it cannot decide view serializability. Run all three view checks when that is the property asked.
Comparing only final database values: View equivalence needs the same final writer and the same read sources. Mark every read as
initialorfrom Tj, then mark the last writer of every item.Treating any blind write as proof: Blind writes explain how the two serializability tests can differ, but read or final-writer constraints may still eliminate every serial order. Construct and verify a serial order.
Mixing serializability with recoverability, cascadelessness or strictness: Those properties concern when reads, commits, aborts and overwrites are permitted. Serializability asks whether a schedule has an equivalent serial execution. Apply each definition separately.
How exams test view serializability
Durable question forms ask you to compare two schedules for view equivalence, identify the transaction observed by a read, find the final writer of each item, choose a view-equivalent serial order, or distinguish conflict serializability from view serializability. Blind writes may also appear inside an assertion-reason question.
Keep an answer-first checkpoint for the worked schedules. S ends at X=140, its final writer is T1, and its conflict graph contains T1 -> T2 and T2 -> T1. The preserving serial order is T2 then T1, so S is view serializable but not conflict serializable. For S2, the initial-read constraints demand both transaction orders, making it not view serializable.
Use DBMS Transaction MCQs for a worked practice set; consult official papers for recurrence and weightage.
The short version and the next step
Remember the chain: same initial readers, same source writer for every read, same final writer for every item, and at least one serial order satisfying all three. The blind-write schedule reaches X=140 and is view equivalent to T2 then T1, even though its conflict graph is cyclic.
Cover the solution, rebuild both graph edges, and explain why each serial order fails for S2. For a semester-oriented core CS route, continue with the Zero to Hero Complete CS Course. For placement-focused revision, use CS Fundamentals for Placements.
Keep learning
Conflict Serializability MCQs: 12 Solved Schedule Questions
Solve 12 conflict serializability questions with precedence-graph checks, equivalent serial orders, blind-write traps and a worked lost-update trace.
Concurrency Control in DBMS: Anomalies, Serializability, Locking and 2PL with Worked Examples
Connect the full DBMS concurrency-control chain through one precedence-graph schedule, strict 2PL examples, timestamp rules and recovery checks.
Transaction Management in DBMS: ACID, Serializability, Locking and Recovery
Learn to trace DBMS transactions from operation sequences to precedence graphs, recovery rules, lock protocols, timestamp checks, and crash handling.
Transactions and concurrency control in DBMS: ACID, schedules, serializability
Transactions in DBMS explained: ACID properties, schedules, conflict serializability with a worked precedence graph, two-phase locking, and the exam angle.





