Index hint.
I have a query below that takes between 2-3 minutes to execute. There are three indexes on the table itemdata. If I remove the database hint it runs in 67 msecs. If I change it to itemdata9 it takes about 1 minute. Why is the database index causes the query to execute so slowly?
SELECT /*+ INDEX_DESC(itd ITEMDATA10) */ itd.itemnum, itd.itemname, itd.batchnum,
itd.status, itd.itemtypegroupnum, itd.itemtypenum, itd.itrevnum, itd.itemdate,
itd.datestored, itd.usernum, itd.deleteusernum, itd.securityvalue, itd.doctracenumber,
itd.institution, itd.maxdocrev
FROM hsi.itemdata itd
WHERE ((itd.status = 0)) AND itd.itemnum in ( 8758808)