1Z0-052 · Question #201
Why does performance degrade when many UPDATE, INSERT or DELETE statements are issued on a table that has an associated bitmap index?
The correct answer is C. The smallest amount of a bitmap that can be locked is a bitmap segment. Bitmap indexes suffer severe DML performance issues because locking granularity is at the bitmap segment level, not the row level, causing widespread contention.
Question
Why does performance degrade when many UPDATE, INSERT or DELETE statements are issued on a table that has an associated bitmap index?
Options
- AThe DML operations re-create the bitmap index blocks
- BThe bitmap index is rebuilt automatically after a DML operation
- CThe smallest amount of a bitmap that can be locked is a bitmap segment
- DAdditional time is taken to remove NULL values from the bitmap index after a DML operation
How the community answered
(31 responses)- A3% (1)
- B3% (1)
- C84% (26)
- D10% (3)
Why each option
Bitmap indexes suffer severe DML performance issues because locking granularity is at the bitmap segment level, not the row level, causing widespread contention.
Bitmap index blocks are not re-created on each DML operation; instead, the affected bitmap segments are updated in place, not dropped and rebuilt.
Oracle does not automatically rebuild a bitmap index after a DML operation; the index entries are updated incrementally, not rebuilt from scratch.
A bitmap segment in Oracle maps a range of rowids, so locking even a single row's bitmap entry requires locking the entire segment that covers that range. When multiple concurrent UPDATE, INSERT, or DELETE statements target rows whose rowids fall within the same bitmap segment, each statement must wait for the lock on that segment to be released, serializing DML and degrading performance significantly.
NULL values are stored in bitmap indexes and their removal is not a post-DML step; NULLs are simply represented as a separate bit position and do not require cleanup after each DML.
Concept tested: Bitmap index locking granularity and DML concurrency
Source: https://docs.oracle.com/en/database/oracle/oracle-database/19/cncpt/indexes-and-index-organized-tables.html#GUID-4A5F17C2-35B1-46A8-A0B7-5A9E7B8D2F5A
Topics
Community Discussion
No community discussion yet for this question.