Oracle: bitmap index and deadlock-2

Source: Internet
Author: User

Oracle: bitmap index and deadlock-2 The bitmap index is stored as a compressed index value, which contains a ROWID in the range, therefore, ORACLE must lock the ROWID in all ranges for a given value. Row-level locking is not supported. Another method: When a bitmap index is used, a key points to multiple rows (hundreds of rows). If a bitmap index key is updated, the bitmap index fields corresponding to other rows are locked at the same time! Compared with B-Tree indexes, www.2cto.com stores bitmaps in a compressed format. Therefore, the occupied disk space is much smaller than that of B-Tree indexes. Disadvantages: this lock is costly and may cause some DML statements to have a "lock wait", which seriously affects the efficiency of insertion, update, and deletion. It is not applicable to high-concurrency systems. Usage principle of Bitmap indexes: Bitmap indexes are mainly used to support system or static data and do not support row-level locking of indexes.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.