Database Tuning (MOSC)

MOSC Banner

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)

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center