- However, the smaller the granularity of the lock, the more resources the DBMS will need to consume to perform locking.
- Most db implementations choose between row and page locking.
- For many applications, page locking is sufficient. However, applications needing many concurrent update processes may benefit from the smaller granularity of row locking.
- Very infrequently, when a specific process will be run when no other concurrent access is needed,table locking can be useful. For this reason many DBMS products provide a LOCK TABLE command that can be issued to override the current locking granularity for a db object during the course of a single process or UOW.
- The DBA must analyze the application processing requirement for each db object to determine the optimal locking granularity.
Index entries can also be locked, depending on the DBMS and version in use.
•Index locking can be a significant impediment to performance. Because index entries are usually quite small, it is not uncommon for locking to block application access.
- However, the smaller the granularity of the lock, the more resources the DBMS will need to consume to perform locking.- Most db implementations choose between row and page locking.- For many applications, page locking is sufficient. However, applications needing many concurrent update processes may benefit from the smaller granularity of row locking.- Very infrequently, when a specific process will be run when no other concurrent access is needed,table locking can be useful. For this reason many DBMS products provide a LOCK TABLE command that can be issued to override the current locking granularity for a db object during the course of a single process or UOW.- The DBA must analyze the application processing requirement for each db object to determine the optimal locking granularity.Index entries can also be locked, depending on the DBMS and version in use.•Index locking can be a significant impediment to performance. Because index entries are usually quite small, it is not uncommon for locking to block application access.
การแปล กรุณารอสักครู่..
