Introduction to Optimizer Statistics
程序员文章站
2022-04-26 11:18:35
...
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://blog.51cto.com/roidba/2071989
推荐阅读
-
wamp里安装zend optimizer时总是出有关问题!
-
Notes of Reading Introduction to Algorithm —— Quicksort
-
Notes of Reading Introduction to Algorithm —— Heapsort
-
An introduction to Generative Adversarial Networks (with code in TensorFlow)
-
IBM SPSS Statistics 22.0版本中文破解版安装详细步骤
-
Linux系统下导出ORACLE数据库出现Exporting questionable statistics.错误 处理
-
IBM SPSS Statistics 22.0版本中文破解版安装详细步骤
-
zend optimizer在wamp的基础上安装图文教程
-
ibm spss statistics 21怎么安装?spss statistics 21安装破解图文教程(附下载)
-
IBM SPSS Statistics 20怎么安装?SPSS20安装及破解图文详细教程(附下载)