index full scan:
当我们所需的所有的数据,都可以直接从索引段里面获取的时候,它会走索引全扫描。前提是索引字段有not null约束。
index fast full scan:
数据量比较大的话,采用多块读,就走index fast full scan.
index full scan 和 index fast full scan的区别就是: 数据量不一样,数据量大的话就走index fast full scan.
数据量比较小的话就走index full scan.
index skip scan:
Oracle中的索引跳跃式扫描仅仅适用于那些目标索引前导列的distinct值数量较少、后续非前导列的可选择性又非常好的情形,
因为索引跳跃式扫描的执行效率一定会随着目标索引前导列的distinct值数量的递增而递减。
索引的前导列distinct值很少,第二列选择性比较强,那么就会走index skip scan.
create index idx_id_name on bbb(object_id,object_name);
analyze table bbb compute statistics;
select * from bbb where object_name ='TEST';
1517

被折叠的 条评论
为什么被折叠?



