asked 158k views
1 vote
What is the consequence of allowing another transaction to write a new value between multiple reads of one transaction?

1) Data inconsistency
2) Data integrity
3) Data security
4) Data availability

1 Answer

3 votes

Final answer:

The consequence of allowing another transaction to write a new value between multiple reads of one transaction is data inconsistency.

Step-by-step explanation:

The consequence of allowing another transaction to write a new value between multiple reads of one transaction is data inconsistency. Data inconsistency occurs when the values read by a transaction are different from the values that would have been read if the transaction had been executed without interruption. In other words, the data becomes inconsistent because different parts of the transaction see different versions of the data.

For example, let's say a transaction reads a value from a database and then performs some calculations based on that value. However, before the transaction can complete, another transaction writes a new value to the database. If the first transaction tries to read the value again, it will get a different result, leading to data inconsistency.

answered
User Jason Foreman
by
8.6k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.