If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
Question:
As per explain plan SQL should use index scan but the query goes for tablescan. I cannot understand this situation. Can you please share your thoughts on this.
Are you sure that it is doing a tablescan? Just because the number of rows read is large does not necessarily mean a table scan. Can you supply the SQL of the query and the DDL for the tables and indexes involved? Also the cardinality of the tables and how many rows you think it should be reading through.
1) What is the cardinality of the table?
2) how many rows do you expect to receive from the query.
3) how many other tables are joined in the query and how? How are they accessed?
4) are runstats current?
5) how volatile are the tables (inserts, updates, deletes)?