CLUSTERING FACTOR

 

The clustering_factor is a single number that represents the degree to which data is

randomly distributed through a table, and the concept of creating a number to represent the

data scatter in a table is a good one. Unfortunately, some recent, and not-so-recent, features of

Oracle can turn this magic number into a liability.

 CLUSTERING_FACTOR与表块数接近代表该列更接近于有序。

当Clustering Factor的值越高,进行索引区间扫描的成本越高,这个时候cbo很有可能会选择全表扫描(数据不好模拟额),物理组织上更加“零散”,

这个例子可以从某种程度上解析:“为什么同一份数据在不同机器上跑,性能不一样?”。

 

The clustering factor is used to estimate the number of table IO's that will be performed. The optimizer uses that to determine whether a full scan is preferable to an index range scan+table access by index rowid to retrieve that large number of rows. 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值