加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

Introduction to Optimizer Statistics

发布时间:2020-12-12 14:04:53 所属栏目:百科 来源:网络整理
导读:The optimizer cost model relies on statistics collected about the objects involved in a query,and the database and host where the query runs.Statistics are critical to the optimizer's ability to pick the best execution plan for a SQL state
The optimizer cost model relies on statistics collected about the objects involved in a query,and the database and host where the query runs.

Statistics are critical to the optimizer's ability to pick the best execution plan for a SQL statement.

Optimizer statistics include the following:

Table statistics

Number of rows
Number of blocks
Average row length

Column statistics

Number of distinct values (NDV) in a column
Number of nulls in a column
Data distribution (histogram)
Extended statistics

Index statistics

Number of leaf blocks
Number of levels
Index clustering factor
System statistics

I/O performance and utilization
CPU performance and utilization
As shown in Figure 10-1,the database stores optimizer statistics for tables,columns,indexes,and the system in the data dictionary. You can access these statistics using data dictionary views.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读