0

I wrote this query to find the number of purchases for which there are at least 1000 other purchases, but only if ServiceType, GST and PaymentType are the same.

I was thinking of adding an index to make this query faster, I thought an bitmap index would be the way to go and create this on ServiceType, PaymentType and GST columns.

What is the best index to speed up the query above?

Thanks,

Jim

4

1 回答 1

0

B 树索引(默认)

BITMAP 索引:当不同值的数量非常少时使用它,也主要用于更新非常少或根本不更新的表。

REVERSE Key Indexes :在 RAC 中用于防止热点。

分区索引(本地/全局)。(本地分区索引使用与表相同的分区方案,全局分区索引可以有与父表不同的索引方案)

集群索引:它是在集群表上创建的。

于 2013-05-22T04:10:24.507 回答