Question

In: Computer Science

According to the conflicts and failure in transactions processing, the need of concurrency control and recovery...

According to the conflicts and failure in transactions processing, the need of concurrency control and recovery appeared.
Discuss the differences between concurrency control and recovery in terms of:
The purposes.
The algorithms.
The problems.

thank you.

Solutions

Expert Solution

Differences between concurrency control and recovery in terms of the purposes,algorithms and problems are as follows:

Concurrency Control

Recovery

Purpose

  • There are multiple transactions happening over a single shared database which might lead to integrity & consistency problems. To avoid such problems with the shared database, we use concurrency control.
  • The purpose is to make every individual user feel the consistency of the system even though it is been used by multiple user at the same time.
  • To ensure serializability
  • To apply isolation using mutual exclusion between conflicting transactions.
  • Recovery process is needed by the systems to recover from the unforeseen failures if any. i.e to make the system fault tolerant.
  • The purpose here is to undo the changes done by aborted/incomplete transactions and only consider the transactions that have been committed/completed successfully.
  • The purpose is coping with all kinds of failure-transaction, system or media

Algorithms

  • Lock based
  • Graph based
  • Timestamp based
  • Validation based
  • Multiversion schemes
  • STEAL and NO-FORCE policy
  • Logging
  • Write Ahead Logging (WAL)

Problems

  • Updates might be lost if multiple transactions select same rows and try to update it.
  • Dirty reads can take place.
  • Second transaction might try to access the same row multiple times with different value each time.
  • Backups are needed to recover from media failure which is time consuming and requires down time.
  • Backup frequency should be decided carefully.
  • If transaction log itself are damaged then restoring the database from the last backup becomes impossible.

Related Solutions

What are the concurrency-control manager and recovery manager, respectively? What are their purpose?
What are the concurrency-control manager and recovery manager, respectively? What are their purpose?
Locking methods are one of the most common techniques used in concurrency control. There are different...
Locking methods are one of the most common techniques used in concurrency control. There are different levels of lock use. Make sure you clearly write down (a), (b) followed by your answers. [6 marks] (a) Use the following scenario to illustrate and explain how a table-level lock and a page-level lock work. Scenario: Transaction 1 (T1) wants to update row 5 in Table A Transaction 2 (T2) wants to update row 2 in Table A Note: Page 1 contains rows...
Question on Database Systems - Concurrency Control A popular update operation is increment/decrement the numeric value...
Question on Database Systems - Concurrency Control A popular update operation is increment/decrement the numeric value of data object by 1. Suppose we are now to create a lock mode I, along with usual shared and exclusive lock modes. Consider a locking protocol that will require a request for a lock with mode I on a data object Q (with numeric value) before proceeding with the increment/decrement operation on Q. (i) Provide a lock compatibility matrix with these three modes....
Recall the Kung and Robinson optimistic concurrency control algorithm. How can you modify that algorithm to...
Recall the Kung and Robinson optimistic concurrency control algorithm. How can you modify that algorithm to ensure that every transaction eventually completes?
DQ4 – Service! Read through the discussion on service characteristics, service gaps and service recovery/failure in...
DQ4 – Service! Read through the discussion on service characteristics, service gaps and service recovery/failure in Chapter 13, then answer the following questions: Which of the four characteristics differentiating services from product do you think leads to the most service failures and why? Please be sure to briefly explain the characteristic that you select. You’ve heard the saying “the customer is always right.” Do you think that’s true? Why or why not? Provide a specific situation you (as a customer)...
Discuss the hazards that can effect from control valve failure
Discuss the hazards that can effect from control valve failure
Service! Read through the discussion on service characteristics, service gaps and service recovery/failure in Chapter 13,...
Service! Read through the discussion on service characteristics, service gaps and service recovery/failure in Chapter 13, then answer the following questions: Which of the four characteristics differentiating services from product do you think leads to the most service failures and why? Please be sure to briefly explain the characteristic that you select. You’ve heard the saying “the customer is always right.” Do you think that’s true? Why or why not? Provide a specific situation you (as a customer) have faced...
i need a SIR model of the deaths, recovery and the confirm cases of the corona...
i need a SIR model of the deaths, recovery and the confirm cases of the corona virus in puerto rico. let me know if you need additional info. SIR epidemic spread model.
IT-344: Database Management Systems please No handwriting thank you Topic of Discussion According to the conflicts...
IT-344: Database Management Systems please No handwriting thank you Topic of Discussion According to the conflicts and failure in transactions processing, the need of concurrency control and recovery appeared. Discuss the differences between concurrency control and recovery in terms of: The purposes. The algorithms. The problems.
Describe the control systems according to the working mode.
Describe the control systems according to the working mode.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT