Block contention explained
In database management systems, block contention (or data contention) refers to multiple processes or instances competing for access to the same index or data block at the same time. In general this can be caused by very frequent index or table scans, or frequent updates. Concurrent statement executions by two or more instances may also lead to contention, and subsequently busy waiting for the process without the lock.[1] [2]
Solutions
- To reduce contention for table blocks due to delete, select or update statements, reduce the number of rows per block. This can be done by using a smaller block size.
- To reduce contention for table blocks due to insert statements, increase the number of freelists, or buffer frames.
- To reduce contention for index blocks the best strategy is to implement a reverse index.
In most situations the goal is to spread queries over a greater number of blocks, to avoid concentrating on any single one.
Notes and References
- Book: Antognini
, Christian
. Troubleshooting Oracle Performance . limited . Apres . 2008 . 543–546 . 1-59059-917-9 .
- Book: Burleson
, Don
. Oracle Silver Bullets . Rampant TechPress . 2005 . 123 . 0-9759135-2-2 .