Statistics Analysis【TUNNING 12】【每日一译】--2013-1-20

本文讨论了查询优化器如何依赖对象的统计信息来生成执行计划。当统计信息过时或缺失时,ATO(自动调优优化器)会进行干预,推荐收集相关统计信息,并提供辅助信息形式的统计调整因子。此外,还介绍了SQL Profile的概念及其作用。
The query optimizer relies on object statistics to generate execution plans. If these
statistics are stale or missing, the optimizer does not have the necessary information it
needs and can generate poor execution plans. The Automatic Tuning Optimizer checks

each query object for missing or stale statistics, and produces two types of output:

查询优化器依赖于对象的统计信息去创建执行计划。如果这些统计信息是旧的或者丢失,

那么优化器将没有它需要的信息和不能产生很好的执行计划。ATO核对每个查询的对象

的旧的信息和丢失的信息,并且产生2种类型的输出:

■ Recommendations to gather relevant statistics for objects with stale or no statistics.
Because optimizer statistics are automatically collected and refreshed, this
problem may be encountered only when automatic optimizer statistics collection

has been turned off. See "Automatic Statistics Gathering" on page 14-2.

#推荐去收集对象的相关统计信息对于使用旧的和丢失统计信息的对象。因为优化器的

统计信息是自动收集和刷新的,但它会遇到一个问题当自动优化统计信息的收集被关闭时候。

■ Auxiliary information in the form of statistics for objects with no statistics, and
statistic adjustment factor for objects with stale statistics.

This auxiliary information is stored in an object called a SQL Profile.

#辅助信息对于对象的统计信息的形式是没有包含统计信息,并且对于对象来说统计信息的调整

使用旧的统计信息。

这个辅助信息存在于一个叫做SQL PROFILE的对象里。

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值