Affiliation:
1. Univ. of California-Berkeley, Berkeley
Abstract
Locking granularity refers to the size and hence the number of locks used to ensure the consistency of a database during multiple concurrent updates. In an earlier simulation study we concluded that coarse granularity, such as area or file locking, is to be preferred to fine granularity such as individual page or record locking.
However, alternate assumptions than those used in the original paper can change that conclusion. First, we modified the assumptions concerning the placement of the locks on the database with respect to the accessing transactions. In the original model the locks were assumed to be well placed. Under worse case and random placement assumptions when only very small transactions access the database, fine granularity is preferable.
Second, we extended the simulation to model a lock hierarchy where large transactions use large locks and small transactions use small locks. In this scenario, again under the random and worse case lock placement assumptions, fine granularity is preferable if all transactions accessing more than 1 percent of the database use large locks.
Finally, the simulation was extended to model a “claim as needed” locking strategy together with the resultant possibility of deadlock. In the original study all locks were claimed in one atomic operation at the beginning of a transaction. The claim as needed strategy does not change the conclusions concerning the desired granularity.
Publisher
Association for Computing Machinery (ACM)
Reference17 articles.
1. System R
2. CODASYL PROGRAMMING LANGUAGE COMMITTEE. CODASYL COBOL Data Base Facility- Proposal March 1973. CODASYL PROGRAMMING LANGUAGE COMMITTEE. CODASYL COBOL Data Base Facility- Proposal March 1973.
3. System Deadlocks
4. DIGITAL EQUIPMENT CORP. DBMS-11 Data Base Administrator's Guide. DEC-11-ODABA-A-D Digital Equipment Corp. Maynard Mass. 1976. DIGITAL EQUIPMENT CORP. DBMS-11 Data Base Administrator's Guide. DEC-11-ODABA-A-D Digital Equipment Corp. Maynard Mass. 1976.
Cited by
60 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献