Are there any performance impact in calling functions in an SQL statement due to context switching between SQL and PL/SQL engines? Or is the potential impact dependent on the function called?
- Calling built-in functions:
select dbms_crypto.hash(utl_raw.cast_to_raw(COLUMN),1) from TABLE_NM;
- Calling PL/SQL functions:
create or replace package PCK as function doSomething(val varchar2) return varchar2; end PCK; select PCK.doSomething(COLUMN) from TABLE_NM
Are there performance overhead due to function calls? Thanks.