Full table scan and index scan issue
Hi Guys,
We have two database OPRODBUG and ODEV. The issue here is we need to identify why on ODEV the third query is going for full table scan where OPRODBUG going on index scan We are currently working on query performance this will help us in indentifying the issue.
There are 2 section 1) Count of rows on various query 2) Scan information for the respective query.
Note: The format below does not look good.
Query OPRODBUG ODEV
select count(*) from oe_order_lines_all; 1391168 1215425
select count(*) from oe_order_lines_all a where actual_shipment_date >= (sysdate -90); 8706 20
select count(*) from oe_order_lines_all a where actual_shipment_date >= (sysdate -2); 18 14
select count(*) from oe_order_lines_all; Full Table Scan Full Table Scan
select * from oe_order_lines_all where actual_shipment_date >= (sysdate -90); Full Table Scan Full Table Scan
select * from oe_order_lines_all where actual_shipment_date >= (sysdate -2); Index scan Full Table Scan