142. Which two statements are true about a bitmap index? (Choose two.)
A) It is recommended for the columns that have unique values.
B) It can be converted to a B-tree index by using the ALTER INDEX command.
C) It has a bitmap segment for each distinct value in the key column, containing a string of bits in which each bit represents the presence or absence of a key column value.
D) Updating the key column locks the whole bitmap segment that contains the bit for the key value to be updated.
答案:CD
位图索引---在关键列上,每一个不同值都有位图段,更新关键列,会锁住位图段,包含主要要被更新的段
1:bitmap 索引是分段存储的,也就是说很多条记录可能是分做了N段来存储,也就是有N个begin/end ,当新的记录 insert 而使用以前未曾使用过的物理地址的时候,会产生一个bitmap 段来存储,就算只有一条记录 2: 当删除一条记录的时候,在bitmap 索引上做了一个delete 的标记并用一新的记录来标记了,下面请看具体的演示 3: 当 dml发生的时候,会lock住某个值的存储bit的那一rowid所在的记录,参考下面的 row 中 lock ,这样显然会影响并发
参考biti_rainy早年实验 http://www.itpub.net/114023.html
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/11312660/viewspace-718647/
,如需转载,请注明出处,否则将追究法律责任。