现在,查看访问计划。
分析存取方案。
Run db2exfmt to generate access plan
运行db2exfmt生成访问计划
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的存取计划。
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.
未使用反向文本索引的查询的访问计划。
Use the db2exfmt tool to generate the access plan.
使用db2exfmt工具生成访问计划。
DB2 would not reuse an access plan in this example.
在这种情况下,DB 2不会重用访问计划。
And the access plan generated by the db2exfmt tool.
db 2exfmt工具就会生成存取计划。
Run db2exfmt to generate access plan (see Downloads).
运行db 2 exfmt生成访问计划(参见下载)。
Access plan for query accessing an inverted text index.
访问反向文本索引的查询的访问计划。
You get a different access plan in test than production.
您在测试中获得了一个不同于生产中的访问计划。
From this new access plan graph, you can see the following.
在这张新访问计划图中,您可以看到以下内容。
Use access plan information to help optimize SQL statements.
使用访问计划信息帮助优化sql语句。
Another advantage of access plan reuse is a reduced CPU load.
访问计划重用的另一个好处是CPU负载减小。
You can generate the access plan using DB2's explain facility.
可以用DB2的explain工具程序生成存取计划。
From the access plan graph in Figure 6, you can see the following.
在图6中访问计划图中,您可以看到以下内容。
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.
收集数据分布的统计信息,然后再次生成访问计划。
A query access plan similar to the following is chosen by the optimizer.
优化器会选择类似如下所示的查询访问计划。
If they are the same, then you are successful in recreating the access plan.
如果它们是相同的,那么您就成功地重新创建了访问计划。
Examine the contents of test_dummydb_exfmt.txt and look at the access plan.
检查test _ dummydb_exfmt . txt的内容并查看访问计划。
应用推荐