Query Taking a long time to run.
In one of my reports I am using the following query which is looking at APPLSYS.WF_ITEM_ATTRIBUTE_VALUES table when the report runs for some record it takes around 2 hours to finish the report. would appreciate if any one can let me know how to tune this query. This table(APPLSYS.WF_ITEM_ATTRIBUTE_VALUES WAV ) has around 65.10 million records.
SELECT WAV.ITEM_KEY , WAV.TEXT_VALUE FROM APPLSYS.WF_ITEM_ATTRIBUTE_VALUES WAV
WHERE 1=1
AND WAV.ITEM_TYPE = 'APEXP'
AND WAV.NAME = 'APPROVER_DISPLAY_NAME'
AND WAV.ITEM_KEY = 1028592
Thanks in Advance.