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.
Introduction to Optimizer Statistics
原创
©著作权归作者所有:来自51CTO博客作者roidba的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Managing Optimizer Statistics
Managing Optimizer StatisticsThis chapter explains why statisti
数据库 人工智能 oracle ide sed -
【性能优化】optimizer statistics统计信息管理技巧
视图
Oracle 数据库 -
The Query Optimizer
The Query OptimizerThis chapter discusses SQL processing, optimizat
数据库 人工智能 sql sed oracle