Skip to content
Advertisement

How to optimize the performance of the following SQL query?

For the following query , I tried creating index on table tmp.req_index_cont_t with columns indcont_key_1 and ind_no but still optimizer is performing full table scan , I am not getting how to resolve this issue , please guide :

Advertisement

Answer

There’s not enough information here to answer your question. Why do you think a full table scan is not the best option for this query? I assume you’re upset that it’s doing a full table scan on req_index_cont_t because that’s the one you put an index on.

As an educated guess, I’d say it’s because you have indcnt.delete_date in the select list but not the index. That means Oracle will have to fetch the entire row in question and has decided against using the index.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement