Difficulty: Easy
Correct Answer: Phantom read.
Explanation:
Introduction / Context:
Beyond single-row changes, range queries can be affected by concurrent inserts or deletes, producing anomalies known as phantoms. Correct handling of phantoms is central to serializable isolation and predicate locking theory.
Given Data / Assumptions:
Concept / Approach:
When new rows appear that match the prior predicate, we call this a phantom read. It differs from nonrepeatable reads (which affect the same previously read row) because the issue is the changing membership of the result set, not just changes to a particular row's values.
Step-by-Step Solution:
Verification / Alternative check:
Standard isolation definitions (ANSI/ISO, academia, and vendor docs) illustrate phantoms as changes in the set of rows qualifying for a predicate, confirming the term and mitigation via serializable isolation or appropriate locking/indexing strategies.
Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
Phantom read.
Discussion & Comments