官术网_书友最值得收藏!

Understanding the query optimization workflow

Now it's time to take a deeper look at how SQL Server creates optimized query execution plans. As mentioned in Chapter 2Understanding Query Processing, this is the second phase of query processing, and for the most part only Data Manipulation Language (DML) statements undergo query optimization. The query optimization process is defined by the following cumulative stages:

  • Trivial Plan
  • Exploration which in turn, includes three phases in itself:
    • Transaction processing
    • Quick plan
    • Full optimization

In the Exploration stage, what differentiates between the several phases is the increasing sets of rules applicable to each one as the search for a good-enough query plan progresses. Users can learn about the optimization level of a given query execution plan by looking at the properties of that plan. The following sections include sample execution plans to illustrate the concepts covered here. Query execution plans will be discussed in more detail in Chapter 4Exploring Query Execution Plans.

主站蜘蛛池模板: 余庆县| 连平县| 芷江| 雅江县| 浦东新区| 峨眉山市| 南陵县| 阿克苏市| 虹口区| 聊城市| 定边县| 南开区| 大安市| 湛江市| 凯里市| 海城市| 突泉县| 西丰县| 潞西市| 清镇市| 凤山县| 邛崃市| 开远市| 平遥县| 井陉县| 顺义区| 水城县| 庆云县| 义乌市| 石城县| 凤城市| 屏边| 城市| 铅山县| 宣化县| 綦江县| 莱阳市| 闻喜县| 屏山县| 金溪县| 卢龙县|