VLDB 超级大表上没有index 还需要gather statistics吗?

文档指明这个问题不属于DBA的问题,而是属于DW的问题,超大表的情况,statistics 要分析,而且不能留给夜晚的job去跑。

Do I need to gather statistics on an Oracle table that has no index?

I have an Oracle 11g DB, and some of the tables are truncated and re-imported from a source system regularly. 
I have no index on those tables (for import performance reasons), though they have many million rows. 
Do I need to gather the statistics of the tables every time I import them? 
When I treat the table I need to analyze and process every row anyway.

Optimizer statistics should be gathered after any significant data change.

---A:

That‘s a good general rule to follow. There are exceptions but a lack of indexes is not a good enough reason.   没有index不是理由,因为 table scan方式是一方面
Its true that one of the main benefits of accurate statistics is deciding whether to use a full table scan or an index access. 
But thats only o

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值