91
GB
What is the write skew anomaly that snapshot isolation allows but serializable isolation prevents?
IN
राइट स्क्यू विसंगति क्या है जो स्नैपशॉट अलगाव की अनुमति देती है लेकिन क्रमबद्ध अलगाव को रोकती है?
A
Overwriting uncommitted data
अप्रतिबद्ध डेटा को ओवरराइट करना
B
Writing to the same row simultaneously
एक ही पंक्ति में एक साथ लिखना
C
Writing incorrect data to the database
डेटाबेस में ग़लत डेटा लिखना
D
Two transactions each read overlapping data make decisions based on it and write to non-overlapping parts collectively violating an integrity constraint that neither individual write would violate - e.g. both doctors check at least one doctor on call both see the other is on call both decide to go off call
दो लेन-देन प्रत्येक ओवरलैपिंग डेटा को पढ़ते हैं, उसके आधार पर निर्णय लेते हैं और गैर-ओवरलैपिंग भागों को सामूहिक रूप से एक अखंडता बाधा का उल्लंघन करते हुए लिखते हैं, जिसका कोई भी व्यक्तिगत लेखन उल्लंघन नहीं करेगा - उदाहरण के लिए दोनों डॉक्टर कॉल पर कम से कम एक डॉक्टर की जाँच करते हैं, दोनों देखते हैं कि दूसरा कॉल पर है, दोनों कॉल बंद करने का निर्णय लेते हैं
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
Write skew: T1 reads (Alice=on_call, Bob=on_call), decides Alice can go off call. T2 reads same, decides Bob can go off call. Both commit. Result: no one on call (violated constraint). No write conflict (different rows written). Prevented by Serializable but not Snapshot Isolation. Example: hospital scheduling, banking constraints.
व्याख्या (हिन्दी)
तिरछा लिखें: T1 पढ़ता है (ऐलिस=ऑन_कॉल, बॉब=ऑन_कॉल), निर्णय लेता है कि ऐलिस कॉल बंद कर सकती है। टी2 वही पढ़ता है, फैसला करता है कि बॉब कॉल बंद कर सकता है। दोनों प्रतिबद्ध हैं. नतीजा: कॉल पर कोई नहीं (बाधा का उल्लंघन)। कोई लेखन विरोध नहीं (अलग-अलग पंक्तियाँ लिखी गईं)। क्रमांकन द्वारा रोका गया लेकिन स्नैपशॉट अलगाव द्वारा नहीं। उदाहरण: अस्पताल का शेड्यूल, बैंकिंग बाधाएँ।