首页 > 其他 > 详细

Introduction to Optimizer Statistics

时间:2018-02-21 10:37:16      阅读:209      评论:0      收藏:0      [点我收藏+]
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

原文:http://blog.51cto.com/roidba/2071989

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!