Skip Scanning of Indexes Advantages

简介:

What is skip scanning?

  In prior releases, a composite index would be used to retrieve the records, if the index prefix (leading) column was included in the predicate of the statement. With Oracle9i, the optimizer can use a composite index even if the prefix column value is not known. The optimizer uses an algorithm called skip scanning to retrieve ROWIDs for values that do not use the prefix column.        How does a skip scan work?   During a skip scan, the B*-tree is probed for each distinct value in the prefix column. Under each prefix column value, the normal search algorithm takes over. The result is a series of searches through subsets of the index, each of which appears to result from a query using a specific value of the prefix column. However, with the skip scan, the value of the prefix column in each subset is obtained from the initial index probe rather than from the command predicate. The optimizer uses the statistics to determine whether a skip scan retrieval would be more efficient than a full table scan, or other possible retrieval paths, when parsing



本文转自maclean_007 51CTO博客,原文链接:http://blog.51cto.com/maclean/1276731

相关文章
|
SQL 消息中间件 关系型数据库
实时计算 Flink版产品使用合集之 sql采集mysql能拿到before的数据吗
实时计算Flink版作为一种强大的流处理和批处理统一的计算框架,广泛应用于各种需要实时数据处理和分析的场景。实时计算Flink版通常结合SQL接口、DataStreamAPI、以及与上下游数据源和存储系统的丰富连接器,提供了一套全面的解决方案,以应对各种实时计算需求。其低延迟、高吞吐、容错性强的特点,使其成为众多企业和组织实时数据处理首选的技术平台。以下是实时计算Flink版的一些典型使用合集。
|
9月前
|
Linux 虚拟化 数据安全/隐私保护
系统崩溃不用慌!VMware这个逆天功能竟能让CentOS一键回档?后悔药真实存在!
备份的重要性在于它能在系统出现异常或错误时,帮助我们快速恢复到正常状态,避免重新安装系统和配置环境。VMware 提供了两种备份方式:快照和克隆。 **快照**是保存虚拟机某一时刻的完整状态(包括内存、CPU、磁盘数据),便于快速回滚,适合临时保存状态。操作简单,可在系统运行时创建。 **克隆**则是复制整个虚拟机系统,侧重长期备份,需在系统关闭时进行。分为完整克隆和链接克隆,前者独立于源系统,占用更多空间,但更安全可靠。
411 17
系统崩溃不用慌!VMware这个逆天功能竟能让CentOS一键回档?后悔药真实存在!
|
前端开发 小程序
微信小程序前端(纯前端)如何解密手机号?
微信小程序前端(纯前端)如何解密手机号?
微信小程序前端(纯前端)如何解密手机号?
|
网络协议 安全 网络安全
网络基础知识
网络基础知识
200 0
|
存储 NoSQL 自动驾驶
MongoDB在自动驾驶场景方案及最佳实践
MongoDB在自动驾驶场景方案及最佳实践
|
数据采集 编解码 监控
清华大学《信号与系统》电力系统同步相量计算【FFT/谐波/小波变换】
清华大学《信号与系统》电力系统同步相量计算【FFT/谐波/小波变换】
【UCIe】FDI & RDI 接口信号释义
【UCIe】FDI & RDI 接口信号释义
2082 0
【UCIe】FDI & RDI 接口信号释义
|
弹性计算 运维 Kubernetes
《2023云原生实战案例集》——05 金融服务——视野数科 运维提效60%,SAE+Jenkins打造云原生DevOps
《2023云原生实战案例集》——05 金融服务——视野数科 运维提效60%,SAE+Jenkins打造云原生DevOps
|
数据可视化 JavaScript 前端开发
数据可视化工具|学习笔记
快速学习数据可视化工具
数据可视化工具|学习笔记
|
编译器 C++
【关于结构体内存对齐问题】(上)
【关于结构体内存对齐问题】
242 0