位图连接索引

时间:2013-11-07 13:06:33

标签: oracle oracle11g oracle10g data-warehouse

在事实表和维度

之间创建BJI时
CREATE BITMAP INDEX IDX_BITJ ON fact(dimension.city) 
FROM fact, dimension 
WHERE fact.id_customer = dimension.id_customer;

然后查询:

select sum(a.count) from fact a, dimension b 
where a.id_customer = b.id_customer and b.city = 'London';

解释计划总是会对表格进行全面扫描...... 谁能解释我为什么?不应该使用位图索引吗?

0 个答案:

没有答案