Question

In: Computer Science

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.

Solutions

Expert Solution

Concurrency control

——————————

They are multiple transactions that are allowed to run currently in the system
Advantages of concurrent executions
1.Increased processor and disk utilization, leading to better transaction throughput: one transaction can be using the CPU while another is reading from or writing to the disk.
2.Reduced average response time for transactions: short transactions need not wait behind long ones.

Concurrency control schemes:

—————————————-
They are mechanisms to control the interaction among the concurrent transactions in order to prevent them from destroying the consistency of the database.


Schedules:
Schedules are sequences that indicate the chronological order in which instructions of concurrent transactions are executed.
1.A schedule for a set of transactions must consist of all instructions of those Transactions
2.Must preserve the order in which the instructions appear in each individual transaction.
Example Schedules
Let T1 transfer $50 from A to B, and T2 transfer 10% of the Balance from A to B. The following is a Serial Schedule in which T1 is followed by T2.

Let T1 and T2 be the transactions defined previously. The schedule 2 is not a serial schedule,but it is equivalent to Schedule 1.
  

In both Schedules 1 and 3, the sum A+ B is preserved.

Recoverability
Recoverable schedule — if a transaction Tj reads a data items previously written by a transaction Ti, the commit operation of Ti appears before the commit operation
of Tj.


The following schedule (Schedule 11) is not recoverable

1.If T9 commits immediately after the read
2.If T8 should abort, T9 would have read (and possibly shown to the user) an inconsistent
database state. Hence database must ensure that schedules are recoverable.

Cascading rollback:
Definition: If a single transaction failure leads to a series of transaction rollbacks, It is called as cascaded rollback.
Consider the following schedule where none of the transactions has yet committed
1. If T10 fails, T11 and T12 must also be rolled back.
2. Can lead to the undoing of a significant amount of work
Cascade less schedules:
The cascading rollbacks cannot occur; for each pair of transactions Ti and Tj such that Tj reads a data item previously written by Ti, the commit operation of Ti appears before the read operation of Tj.
1. Every cascade less schedule is also recoverable
2. It is desirable to restrict the schedules to those that are cascade


Related Solutions

IT344- Database Management Systems book Fundamentals Of Database Systems please no copy and paste Use your...
IT344- Database Management Systems book Fundamentals Of Database Systems please no copy and paste Use your own words , No handwriting. Users prefer to stream high quality videos (e.g., watch YouTube) without lagging (i.e., slow loading). In this context, explain how UDP is better than TCP when streaming videos?
Database Management Systems IT344 -Fundamentals Of Database Systems book Please Use your own words . sorry...
Database Management Systems IT344 -Fundamentals Of Database Systems book Please Use your own words . sorry No handwriting no copy paste Construct a B+ tree for the following set of key values under the assumption that the number of key values that fit in a node is 3. Key values (3,10,12,14,29,38,45,55,60,68,11,30) Show the step involved in inserting each key value. thank you for your time and effort
Please Use your keyboard (Don't use handwriting) Thank you .. Write a report for:- Determine the...
Please Use your keyboard (Don't use handwriting) Thank you .. Write a report for:- Determine the relationship between those factors and how these factors can affect the adoption of e-HRM in the Palestinian companies.
Identify 5 benefits of using a Database management systems
Identify 5 benefits of using a Database management systems
Please Use your keyboard (Don't use handwriting) Thank you.. Courses Name: Introduction to Biostatistics Please answer...
Please Use your keyboard (Don't use handwriting) Thank you.. Courses Name: Introduction to Biostatistics Please answer the following questions: I need new and unique answers, please. (Use your own words, don't copy and paste) i need more than 500 words pleasssse Q1. Discuss the tools to measure central tendency. Q2. a) Discuss parametric and nonparametric test used for hypothesis testing. b) In a cross sectional study on coronary heart disease (CHD), the smoking and CHD status is summarized below. Use...
Please Use your keyboard (Don't use handwriting) Thank you.. I need new and unique answers, please....
Please Use your keyboard (Don't use handwriting) Thank you.. I need new and unique answers, please. (Use your own words, don't copy and paste) IT243 Course name: System Analysis and Design ***********Please i need more details and more Explain********** Q1: What are the roles of a project sponsor and the approval committee during the different SDLC phases? Q2: As the project sponsor, you suggested that your company that runs multiple local supermarkets should provide an online shopping service to increase...
Please Use your keyboard (Don't use handwriting) Thank you.. I need new and unique answers, please....
Please Use your keyboard (Don't use handwriting) Thank you.. I need new and unique answers, please. (Use your own words, don't copy and paste) IT243 Course name: System Analysis and Design ***********Please i need more details and more Explain********** Q2: As the project sponsor, you suggested that your company that runs multiple local supermarkets should provide an online shopping service to increase sales during COVID-19 pandemic. Write a system request to propose this project. System request Project Sponsor Business Need...
Please Use your keyboard (Don't use handwriting) Thank you.. I need new and unique answers, please....
Please Use your keyboard (Don't use handwriting) Thank you.. I need new and unique answers, please. (Use your own words, don't copy and paste) HCI 314 Write a page and a half (400-600 words) in an essay style answer to respond to the following question: Disruptive innovation is a driver for change in public health informatics. As a Health Informatics professional which innovation do you think has the greatest impact during COVID-19 pandemic and why? _____ please re -write my...
Please Use your keyboard (Don't use handwriting) Thank you.. I need new and unique answers, please....
Please Use your keyboard (Don't use handwriting) Thank you.. I need new and unique answers, please. (Use your own words, don't copy and paste) IT243 Course name: System Analysis and Design Q2: As the project sponsor, you suggested that your company that runs multiple local supermarkets should provide an online shopping service to increase sales during COVID-19 pandemic. Write a system request to propose this project. System request Project Sponsor Business Need Business Requirements Business Value Special Issues or Constraints...
Please Use your keyboard (Don't use handwriting) Thank you.. I need new and unique answers, please....
Please Use your keyboard (Don't use handwriting) Thank you.. I need new and unique answers, please. (Use your own words, don't copy and paste) PHC151 Illustrate the adverse effects of the foodborne diseases, foodborne infections and foodborne outbreaks on the human health.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT