- Learn T-SQL Querying
- Pedro Lopes Pam Lahoud
- 238字
- 2021-06-24 14:38:17
The Exploration stage
If the Trivial Plan stage doesn't find a suitable plan, it's time to enter the cost-based optimization stage, known as Exploration, whose goal is to find a good-enough query execution plan based on the minimum estimated cost to access and join data. If this stage is used, the information on the optimization level is still stored in the execution plan under the same Optimization Level property, with a value of FULL.
The Exploration stage is where the CE comes into play. SQL Server loads statistics and performs some tasks in preparation for cost-based optimization.
These tasks are as follows:
- Simplification transforms some sub-queries into semi-joins, and even detects whether parts of the query can skip execution, for example avoiding empty tables or searching a table column for a NULL predicate when that table column has a trusted NOT NULL constraint.
- Normalization uses the query’s filter predicates and some heuristics to reorder join operations, and predicates are pushed-down to the algebrizer tree.
The cost-based optimization process itself is composed of three phases that we discuss in the next sections: Transaction Processing, Quick Plan, and Full Optimization.
- Java編程全能詞典
- Introduction to DevOps with Kubernetes
- ServiceNow Cookbook
- 西門子S7-200 SMART PLC實例指導學與用
- DevOps:Continuous Delivery,Integration,and Deployment with DevOps
- Lightning Fast Animation in Element 3D
- 云原生架構進階實戰
- 網站前臺設計綜合實訓
- 內模控制及其應用
- SAP Business Intelligence Quick Start Guide
- MATLAB-Simulink系統仿真超級學習手冊
- 網絡脆弱性掃描產品原理及應用
- Introduction to R for Business Intelligence
- WOW!Photoshop CS6完全自學寶典
- 貫通Hibernate開發