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

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.

主站蜘蛛池模板: 如东县| 龙南县| 准格尔旗| 威信县| 常宁市| 托里县| 新泰市| 汽车| 岐山县| 突泉县| 东阿县| 景洪市| 河北区| 晋州市| 视频| 米脂县| 历史| 丽江市| 竹山县| 鹤山市| 肥西县| 高州市| 沾化县| 兰坪| 蒙山县| 寿宁县| 怀远县| 宜都市| 固原市| 沂南县| 洛隆县| 吉水县| 台东县| 东兴市| 长沙市| 黑水县| 平南县| 丹东市| 巨鹿县| 渑池县| 德江县|