ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 042-142

042-142

原创 Linux操作系统 作者:jbymy2000 时间:2012-03-15 15:46:35 0 删除 编辑
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/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 042-139
下一篇: 042-144
请登录后发表评论 登录
全部评论

注册时间:2012-01-10

  • 博文量
    416
  • 访问量
    273401