码迷,mamicode.com
首页 > 其他好文 > 详细

Introduction to Optimizer Statistics

时间:2018-02-21 10:44:17      阅读:145      评论:0      收藏:0      [点我收藏+]

标签:str   follow   http   ogr   show   val   his   ffffff   ima   

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

标签:str   follow   http   ogr   show   val   his   ffffff   ima   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!