- 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.
- Managing Mission:Critical Domains and DNS
- Getting Started with Containerization
- 精通Windows Vista必讀
- 2018西門子工業專家會議論文集(上)
- VMware Performance and Capacity Management(Second Edition)
- AWS Administration Cookbook
- 樂高機器人—槍械武器庫
- 人工智能趣味入門:光環板程序設計
- 實用網絡流量分析技術
- 從零開始學SQL Server
- 工業機器人集成應用
- FreeCAD [How-to]
- Windows 7來了
- 工業機器人應用系統三維建模
- Flash CS3動畫制作融會貫通