SQL Performance (MOSC)

MOSC Banner

How where clause is evaluated with functions?

edited Apr 2, 2020 5:03AM in SQL Performance (MOSC) 2 commentsAnswered

Good morning,

I have migrated a database (expdp/impdp) from 11.2.0.4 SE to 19.3.0.0 EE and I am having some problems with several cursors which used to spend a few seconds and now  spend more than 20 minutes. Debuging the procedures I have seen the problem is that in 19.3.0.0 EE go into the function and on the other versions (I have tested from 11.2.0.4 SE to 19.3.0.0 SE and 18 EE) it doesn't go into. Keep in mind the query doesn't return any value in any version because data is the same.

The weird thing is that if function condition is moved to the end of where clause, it is not executed and therefore the result is immediate.

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