Oracle之执行计划index fullscan和index fast full scan区别

来源:互联网 发布:淘宝怎么看店铺的评价 编辑:程序博客网 时间:2024/05/16 19:29

   1、当select和where中出现的列都存在索引是发生index full scan与index fast full scan的前提

   2、查询返回的数据行总数占据整个索引10%以上的比率

   3、基于上述前提count(*)操作几乎总是选择index fast full scan,而索引列上的order by子句几乎总是选择index full scan

   4、index fast full scan使用多块读的方式读取索引块,产生db file scattered reads 事件,读取时高效,但为无序读取

   5、index full scan使用单块读方式有序读取索引块,产生db file sequential reads事件,当采用该方式读取大量索引全扫描,效率低下

   6、绝大多数情况下,index fast full scan性能优于index full scan,但前者在有order by时,一定会存在对读取的块重新排序的过程 

   7、index fast full scan通过牺牲内存与临时表空间换取性能,因此在内存不足或饱和状态应进行合理权衡


原创粉丝点击