n a database system employing both pessimistic and optimistic concurrency control mechanisms, which of the following scenarios would typically be handled more efficiently by optimistic concurrency control?A high volume of transactions where most of them update a common set of data.Transactions that are mostly read-only and seldom update the database.Transactions in a banking system where account balances are frequently updated.
Question
n a database system employing both pessimistic and optimistic concurrency control mechanisms, which of the following scenarios would typically be handled more efficiently by optimistic concurrency control?A high volume of transactions where most of them update a common set of data.Transactions that are mostly read-only and seldom update the database.Transactions in a banking system where account balances are frequently updated.
Solution
The scenario that would typically be handled more efficiently by optimistic concurrency control is: "Transactions that are mostly read-only and seldom update the database."
Here's why:
-
Optimistic Concurrency Control (OCC) assumes that multiple transactions can complete without affecting each other, and therefore, transactions can proceed without locking any resources. This makes it more suitable for scenarios where conflicts are rare, such as read-only transactions or transactions that seldom update the database.
-
In contrast, Pessimistic Concurrency Control (PCC) assumes that conflicts are likely to happen and locks resources to prevent conflicts. This makes it more suitable for scenarios where conflicts are common, such as a high volume of transactions updating a common set of data or transactions in a banking system where account balances are frequently updated.
So, in the given scenarios, the one that would be handled more efficiently by OCC is the one with transactions that are mostly read-only and seldom update the database.
Similar Questions
How do optimistic concurrency control techniques differ from other concurrency control techniques? Why they are also called validation or certification techniques? Discuss the typical phases of an optimistic concurrency control method.
Determine the need of concurrency control.
In a distributed database system, which approach is used to ensure that all copies of a data item are updated simultaneously?Immediate consistencyEventual consistencyQuorum consensusSerializability
In a scenario without concurrency control, what problem might arise when two transactions try to update the same data simultaneously?Reduce data consistencyImproved data consistency
The process of locking records to prevent multiple people from making changes to the same record in the database is known as _______________. A. concurrency control B. backend processing C. record control D. record locking
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.