You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Query optimization question

Summary:

Processing is fast only when not filtering by wlf_assignment_records_f.COMPLETION_DATE

Content (please ensure you mask any confidential information):

I have a learning report. It runs fast but when I add this condition about completion date (wlf_assignment_records_f.COMPLETION_DATE) it goes in timeout:

and ((:pCompletionDateFrom is null and :pCompletionDateTo is null)
or (warf.COMPLETION_DATE between nvl(:pCompletionDateFrom, to_date('01/01/1900', 'dd/mm/yyyy')) and nvl(:pCompletionDateTo, to_date('31/12/4712', 'dd/mm/yyyy'))))

This condition is added in where clause. Do you know what's going on here? Without it it runs in a few minutes, with it it runs for more than 1h and it fails.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!