现在,查看访问计划。
分析存取方案。
Run db2exfmt to generate access plan
运行db2exfmt生成访问计划
Listing 13 shows the new access plan.
清单13展示了新的访问计划。
Listing 9. Access plan for value.sql.
清单9.value . sql的存取计划。
It is a reasonably efficient access plan.
这是相当高效的访问计划。
Access plan for query without hash index.
不使用hash索引的查询的访问计划。
Listing 11. Access plan for pmarker.sql.
清单11.pmarker . sql的存取计划。
Access plan for query accessing a hash index.
访问hash索引的查询的访问计划。
This time you should see the same access plan.
这次,您将看到相同的访问计划。
An action that specifies the desired access plan.
一个操作:指定理想的访问计划。
This covers all the operators in this access plan.
这样就完成了访问计划中的所有操作。
There are three methods of viewing an access plan.
查看访问计划有三种方法。
Access plan for query without inverted text index.
未使用反向文本索引的查询的访问计划。
DB2 would not reuse an access plan in this example.
在这种情况下,DB 2不会重用访问计划。
Generate the access plan using db2exfmt as follows.
使用db2exfmt生成访问计划,如下。
Run db2exfmt to generate access plan (see Downloads).
运行db 2 exfmt生成访问计划(参见下载)。
Listing 12 shows the basic component of an access plan.
清单12展示了访问计划的基本组件。
Access plan for query accessing an inverted text index.
访问反向文本索引的查询的访问计划。
You get a different access plan in test than production.
您在测试中获得了一个不同于生产中的访问计划。
Listing 11 shows the access plan for the SELECT statement.
清单11展示了select语句的访问计划。
Another advantage of access plan reuse is a reduced CPU load.
访问计划重用的另一个好处是CPU负载减小。
Access plan creation in the prepare phase requires CPU resources.
准备阶段的访问计划创建需要CPU资源。
The access plan for a given SQL statement is generated at bind time.
一个特定sql语句的存取计划是在绑定时生成的。
A good access plan is key for the fast execution of an SQL statement.
好的访问计划对于sql语句的快速执行至关重要。
This will result in more accurate costing, and more optimal access plan.
这将导致更精确的成本计算和更优的访问计划。
Collect distribution statistics and then generate the access plan again.
收集数据分布的统计信息,然后再次生成访问计划。
If they are the same, then you are successful in recreating 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.
然而,使用参数标记时,将生成另一个访问计划。
应用推荐