IT技术博客大学习 共学习 共进步
全部 移动开发 后端 数据库 AI 算法 安全 DevOps 前端 设计 开发者

Index Full Scans和Fast Full Index Scans的区别

Incessant 2009-10-11 22:24:35 累计浏览 2,832 次
本机暂存

Index Full Scans

    A full scan is available if a predicate references one of the columns in the index. The predicate does not need to be an index driver. A full scan is also available when there is no predicate, if both the following conditions are met:All of the columns in the table referenced in the query are included in the index.At least one of the index columns is not null.

    A full scan can be used to eliminate a sort operation, because the data is ordered by the index key. It reads the blocks singly.

Fast Full Index Scans

    Fast full index scans are an alternative to a full table scan when the index contains all the columns that are needed for the query, and at least one column in the index key has the NOT NULL constraint. A fast full scan accesses the data in the index itself, without accessing the table. It cannot be used to eliminate a sort operation, because the data is not ordered by the index key. It reads the entire index using multiblock reads, unlike a full index scan, and can be parallelized.

    Fast full scan is available only with the CBO. You can specify it with the initialization parameter OPTIMIZER_FEATURES_ENABLE or the INDEX_FFS hint. Fast full index scans cannot be performed against bitmap indexes.

    A fast full scan is faster than a normal full index scan in that it can use multiblock I/O and can be parallelized just like a table scan.

简单解释一下:
Index Full Scans单块,按照索引值顺序的读取,不需要排序
Fast Full Index Scans可以多块,并行的读取,从速度上来讲比正常的全索引扫描要快,但是因为可以是多块随机的读取,需要排序

同分类推荐文章

  1. 使用deepseek进行Oracle恢复,引起重大故障 (2026-06-22 10:56:00)
  2. 接手一个只差临门一脚的数据库恢复 (2026-06-18 00:13:09)
  3. 我做了一个 AI 版的 StarRocks 升级风险扫描工具,直接帮我定位到一个风险 (2026-06-15 01:00:00)

查看更多 数据库 文章 →

建议继续学习

  1. 由浅入深理解索引的实现(2) (累计阅读 7,711)
  2. mysql查询中利用索引的机制 (累计阅读 6,740)
  3. order by 与 limit 的优化 (累计阅读 4,589)
  4. 合理使用MySQL的Limit进行分页 (累计阅读 4,028)
  5. Infobright 数据仓库 (累计阅读 3,343)
  6. mysql索引的一个技巧 (累计阅读 3,262)
  7. hint指定index的深入理解 (累计阅读 2,593)
  8. MySQL索引原理与慢查询优化 (累计阅读 2,421)
  9. mysql query & index tuning (累计阅读 2,410)