Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
ACID
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Isolation failure === To demonstrate isolation, we assume two transactions execute at the same time, each attempting to modify the same data. One of the two must wait until the other completes in order to maintain isolation. Consider two transactions: * T<sub>1</sub> transfers 10 from A to B. * T<sub>2</sub> transfers 20 from B to A. Combined, there are four actions: # T<sub>1</sub> subtracts 10 from A. # T<sub>1</sub> adds 10 to B. # T<sub>2</sub> subtracts 20 from B. # T<sub>2</sub> adds 20 to A. If these operations are performed in order, isolation is maintained, although T<sub>2</sub> must wait. Consider what happens if T<sub>1</sub> fails halfway through. The database eliminates T<sub>1</sub>'s effects, and T<sub>2</sub> sees only valid data. By interleaving the transactions, the actual order of actions might be: # T<sub>1</sub> subtracts 10 from A. # T<sub>2</sub> subtracts 20 from B. # T<sub>2</sub> adds 20 to A. # T<sub>1</sub> adds 10 to B. Again, consider what happens if T<sub>1</sub> fails while modifying B in Step 4. By the time T<sub>1</sub> fails, T<sub>2</sub> has already modified A; it cannot be restored to the value it had before T<sub>1</sub> without leaving an invalid database. This is known as a [[Write–write conflict|write-write contention]],<ref>{{Cite book |last1=Silberschatz |first1=Abraham |url=https://www.worldcat.org/title/436031093 |title=Database system concepts |last2=Korth |first2=Henry F. |last3=Sudarshan |first3=S. |date=2011 |publisher=McGraw-Hill |isbn=978-0-07-352332-3 |edition=6th |location=New York |page=1042 |chapter=Advanced Application Development |oclc=436031093}}</ref> because two transactions attempted to write to the same data field. In a typical system, the problem would be resolved by reverting to the last known good state, canceling the failed transaction T<sub>1</sub>, and restarting the interrupted transaction T<sub>2</sub> from the good state.
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
ACID
(section)
Add topic