How to force oracle to use index range scan?

前端 未结 5 1605
执笔经年
执笔经年 2021-02-04 08:10

I have a series of extremely similar queries that I run against a table of 1.4 billion records (with indexes), the only problem is that at least 10% of those queries take > 100x

5条回答
  •  误落风尘
    2021-02-04 08:45

    I have seen hint is ignored by Oracle.

    Recently, our DBA uses "optimizer_index_cost_adj" and it utilized the index. This is Oracle parameter but you could use it as session level.

    100 is default value and we used 10 as the parameter.

提交回复
热议问题