Listing 13 shows the new access plan.
清单13展示了新的访问计划。
Access plan for query accessing a hash index.
访问hash索引的查询的访问计划。
Generate the access plan using db2exfmt as follows.
使用db2exfmt生成访问计划,如下。
Listing 12 shows the basic component of an access plan.
清单12展示了访问计划的基本组件。
Listing 11 shows the access plan for the SELECT statement.
清单11展示了select语句的访问计划。
Listing 11. The Access Plan section of a db2exfmt output.
清单11.db 2 exfmt输出的Access Plan区域。
Listing 1. How access plan components appear in db2exfmt output.
清单1 . db 2 exfmt输出中的访问计划成分。
Access plan creation in the prepare phase requires CPU resources.
准备阶段的访问计划创建需要CPU资源。
Database and database manager configuration from the access plan.
访问计划中的数据库和数据库管理程序配置。
This brings little overhead for compiling, but gives an optimal access plan.
这会增加一些编译负载,但却能够产生一个最优的存取计划。
Nevertheless, another access plan is generated when parameter markers are used.
然而,使用参数标记时,将生成另一个访问计划。
Generate the access plan using db2exfmt. You will see the following access plan.
使用db2exfmt生成访问计划。
From the access plan, IXSCAN (3) shows one row is expected to be returned from T1.
在上面的存取计划中,IXSCAN(3)显示T1预期会返回一行记录。
Either way you provide the query and the access plan is generated and shown to you.
不管使用哪种方法,都可以生成和显示访问计划。
After you collect those statistics, you get the new access plan graph shown in Figure 10.
您收集了这些统计数据之后,会得到如图10所示的新访问计划图。
After creating the three new indexes, you get the new access plan graph shown in Figure 13.
创建三个新索引之后,您图13中的新访问计划图。
Before beginning this tutorial, you should be familiar with the concept of an SQL access plan.
在开始本教程之前,您应该熟悉SQL访问计划的概念。
The access plan is created by the database engine based on the SQL statement that is submitted.
访问计划是由数据库引擎根据提交的sql语句创建的。
Access plan and other very detailed information can be found in this file for our example query.
这个文件包含了关于这个示例查询的访问计划和其他详细信息。
When the index name is not specified, optimizer picks the cheapest single XML index access plan.
如果未指定索引名,优化器将选用成本最低的XML 索引访问计划。
DB2 and IDS USES the statistics information in the catalog table to derive the best access plan.
DB2和IDS使用目录表中的统计信息来制定最佳访问计划。
Analyze the query access plan to visualize the choices the optimizer makes in accessing the data.
分析查询访问计划,从而可以切实看到优化器对访问数据作出的选择。
If specified, it requests an access plan using an XISCAN operator over this particular XML index.
如果指定了索引名的话,它将对特定的xml索引使用XISCAN操作符来请求一个访问计划。
Runtime statistics can also be gathered for access plan operators during the execution of a section.
访问计划操作者也可以在一个片段执行时收集运行时统计信息。
Figure 3 depicts the access plan for the very query that we used before extensively in this article.
图3描绘了我们在本文前面多次使用的查询的访问计划。
At each operator in the access plan, the optimizer estimates the cardinality output from the operator.
对于访问计划的每个操作符,优化器将估计该操作符的基数输出。
As the previous section described, parameter marker usage in SQL statements fosters access plan reuse.
如上节所述,sql语句中的参数标记使用可促进访问计划重用。
Bind is the process that saves the access plan associated with a SQL statement into a DB2 SQL package.
绑定过程将与一个sql语句相关联的访问计划保存到一个DB 2 sql包中。
To enable access plan reuse, rewrite the SQL statement using a parameter marker, as shown in Listing 3.
要实现访问计划重用,使用一个参数标记重写SQL语句,如 清单3 所示。
With this feature, the query optimizer can immediately consider the index when determining an access plan.
有了这个特性,查询优化器可以在决定访问计划时立即考虑索引。
应用推荐