Index Fast Full Scan 索引快速全扫描
(page 109)
An index fast full scan is more like a full table scan than like other index scan types. When an index
fast full scan operation is chosen, all the index blocks are read using multiblock reads. This type of
scan is chosen as an alternative to a full table scan when all the columns needed to satisfy the query’s
column list
are included in the index and at least one column in the index has the NOT NULL constraint.
In this case, the data is accessed from the index instead of having to access table blocks. Unlike other
index scan types, the index fast full scan cannot be used to avoid a sort since the blocks are read using
unordered multiblock reads.
Listing 3-16 shows an example of an index fast full scan plan.
索引快速全扫描相比其他的索引扫描类型更像全表扫描。当索引快速全扫描被选择,则所有的索引块使用多块读读取。当查询列集中的所有列
都被包含在索引中且至少索引中的一列有NOT NULL约束,则会选择这种类型的扫描作为全表扫描的替代。
这种情况下,数据通过索引访问而不是必须访问表块。不像其他的索引扫描类型,索引快速全扫描不能用于避免排序,因为块是用无序的多块读读取的。
列表3-16展示了一个索引快速全扫描计划的例子。
Listing 3-16. Index Fast Full Scan
SQL> alter table hr.employees modify (email null) ;
Table altered.
SQL> set autotrace traceonly explain
SQL> select email from hr.employees ;
Execution Plan
----------------------------------------------------------
Plan hash value: 1445457117
--------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)|
--------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 107 | 856 | 3 (0) |
| 1 | TABLE ACCESS FULL
| EMPLOYEES | 107 | 856 | 3 (0) |
--------------------------------------------------------------------
SQL> set autotrace off
SQL>
SQL> alter table hr.employees modify (email not null) ;
Table altered.
--HR EMP_EMAIL_UK Unique EMAIL
SQL> set autotrace traceonly explain
SQL> select email from hr.employees ;
Execution Plan
----------------------------------------------------------
Plan hash value: 2196514524
----------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)|
----------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 107 | 856 | 1 (0) |
| 1 | INDEX FULL SCAN
| EMP_EMAIL_UK
| 107 | 856 | 1 (0) |
----------------------------------------------------------------------
This example demonstrates how the index fast full scan
operation relies on the NOT NULL
constraint in order to be chosen. Without the constraint, a full scan operation is chosen instead.
本例示例了索引快速全扫描如何依赖于NOT NULL约束而被选中。没有这个约束,就会选中全表扫描操作。
注:这里计划是INDEX FULL SCAN而不是i
ndex fast full scan
参看如下链接
http://blog.csdn.net/robinson1988/article/details/6173974
先发现这个错误。
分享到:
相关推荐
environment-modules-3.2.7b-6.el6.i686.rpm是lunx工具包 。
jbosscache-core-3.2.7.GA.jar
wstx-asl-3.2.7.jar
nsis-3.0.3.2.7z
spring-framework-3.2.7.RELEASE 源码及jar包全 关联源代码学习spring 事半功倍
舞台灯光控制软件Lj-USBDMX V3.2.7R(可音乐同步播控),USB-DMX512专用
cxf 生成java webservice客户端代码的工具包,解压后进入到bin目录下,执行wsdl2java命令并输入相关参数
mybatis-3-mybatis-3.2.7源码.rar
spring-webmvc-portlet-3.2.7.RELEASE.jarspring-webmvc-portlet-3.2.7.RELEASE.jarspring-webmvc-portlet-3.2.7.RELEASE.jarspring-webmvc-portlet-3.2.7.RELEASE.jar
从Apache官网下载的最新版本,希望能帮助到有需要的人
在服务端实现消息推送,功能强大,实用、安全,
spring-cglib-repack-3.2.7.jar用于idea导入spring源码用
python库。 资源全名:testwizard.set-top-box-3.2.7.tar.gz
官方2014-1-28发布的spring-framework-3.2.7.RELEASE-dist.zip
spring-core-3.2.7.RELEASE-sources.jar (spring 3.2.7源码source),加载到Eclipse里面进行源码查看。
python库。 资源全名:testwizard.smart-tv-3.2.7.tar.gz
spring-core-3.2.7.RELEASE.jar (spring3.2.7的核心jar包),Java开发中spring框架开发必须的依赖包。
MongoDB是一个介于关系数据库和非关系数据库之间的产品,是非关系数据库当中功能最丰富,最像关系数据库的。他支持的数据结构非常松散,是类似json的bjson格式,因此可以存储比较复杂的数据类型。...
spring-core-3.2.7.RELEASE-javadoc.jar (spring3.2.7的文档doc,即为spring的源码注释),导入到eclipse中,就可以查看spring的源码注释,当调用spring的类或者方法时就会显示注释信息。