Introduction to Optimizer Statistics

前端之家收集整理的这篇文章主要介绍了Introduction to Optimizer Statistics前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
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.
原文链接:https://www.f2er.com/oracle/206432.html

猜你在找的Oracle相关文章