Query Taking a long time to run.
Hi,
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 has around 65.10 million records.
SELECT WAV.ITEM_KEY , WAV.TEXT_VALUE FROM APPLSYS.WF_ITEM_ATTRIBUTE_VALUES WAV WHERE 1=1 WAV.ITEM_KEY , WAV.TEXT_VALUE FROM APPLSYS.WF_ITEM_ATTRIBUTE_VALUES WAV WHERE 1=1 WHERE 1=1AND WAV.ITEM_TYPE = 'APEXP'
AND WAV.NAME = 'APPROVER_DISPLAY_NAME' AND WAV