现在,查看访问计划。
分析存取方案。
Run db2exfmt to generate access plan
运行db2exfmt生成访问计划
It is a reasonably efficient access plan.
这是相当高效的访问计划。
This time you should see the same access plan.
这次,您将看到相同的访问计划。
An action that specifies the desired access plan.
一个操作:指定理想的访问计划。
There are three methods of viewing an access plan.
查看访问计划有三种方法。
Use the db2exfmt tool to generate the access plan.
使用db2exfmt工具生成访问计划。
DB2 would not reuse an access plan in this example.
在这种情况下,DB 2不会重用访问计划。
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工具程序生成存取计划。
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.
如果它们是相同的,那么您就成功地重新创建了访问计划。
Generate the access plan again for the query. It should look similar to this.
再次生成查询的访问计划。
When the statement is compiled, its access plan is stored in the package cache.
在编译语句时,语句的访问计划被存储在包缓存中。
Better UNION handling in the compile and optimization phase of the access plan.
在访问计划的编译和优化阶段提供更好的UNION处理。
In this example, access plan overall costs do not include the actual fetch time.
在这一示例中,访问计划的整体成本并不包括实际的获取时间。
A statement key that identifies the statement whose access plan must be influenced.
识别其访问计划必须受到影响的语句。
From the access plan graph in Figure 6, you can do some initial performance analysis.
在图6的访问计划图中,您可以做一些初始性能分析。
Learn to use access plan information to understand how to optimize your SQL statements.
了解如何使用访问计划信息优化sql语句。
Remember that DB2 can only reuse an access plan if SQL statement texts completely match.
还记得吗,DB2仅在SQL语句文本完全匹配时才能重用访问计划。
For queries that do not match any guideline, the regular cost-based access plan is chosen.
对于不与任何准则匹配的查询,将选择常规的基于成本的访问计划。
Listing 11. Access plan for pmarker.sql.
清单11.pmarker . sql的存取计划。
应用推荐