|
|
Subject:
Database 2
Category: Computers Asked by: eksolutions-ga List Price: $10.00 |
Posted:
04 Dec 2002 14:12 PST
Expires: 03 Jan 2003 14:12 PST Question ID: 119314 |
The questions are based on the following relational schema: Emp( eid: integer, ename: string, age : integer, salary: real, did: integer ) Dept( did: integer, dname: string, floor : integer) and on the following update command: replace(salary=1.1*EMP.salary) where EMP.ename=Santa a. Give an example of a query that would conflict with this command (in a concurrency control sense) if both were run at the same time. Explain what would go wrong, and how locking tuples would solve the problem. b. Give an example of a query or a command that would conflict with this command, such that the conflict could not be resolved by just locking individual tuples or pages, but requires index locking. c. Explain what index locking is and how it resolves the preceding conflict. |
|
Subject:
Re: Database 2
Answered By: maniac-ga on 04 Dec 2002 17:34 PST Rated: |
Hello Eksolutions, A very interesting question to research. If you search with the phrases database update query conflict locking tuples on Google, the highest ranking match has homework answers to a very similar question (and the original PDF has been moved or deleted). It is available from the Google cache at: http://216.239.39.100/search?q=cache:4SdiXL-oEBQC:www.cs.columbia.edu/~gce3/4111m02/docs/hw5sol.pdf+database+update+query+conflict+locking+tuples&hl=en&ie=UTF-8 Scroll down near the end to question #4 (items a, b, and c). In the same way, the second ranking match at http://www.cs.ualberta.ca/~yuan/courses/391/02fall/assignment/solasn01sp/ has question #8 which appears to be the same question with a slightly different set of answers (and doesn't answer your "c"). The remaining references provide additional material to explain the concepts involved. --Maniac | |
| |
|
eksolutions-ga rated this answer: |
|
There are no comments at this time. |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |