Performance problem with "sys_context" calls
Posted: Mon 03 Jul 2006 07:56
begin :Result := SYS_CONTEXT ('USERENV', 'CURRENT_SCHEMA');end;
This statement is called on a TSmartQuery everytime the query is created and opened. Unfortunately I habe many queries on my forms and this statement isn't very fast either.
Checking the source I found a GetCurrentSchema call that is executing this command when "Updating Table" does not contain a schema. Since I am using public synonyms for all the tables there is never a schema.
I am using ODAC 5.70.1.33 with Delphi 7 and Oracle Database 10g Enterprise Edition Release 10.2.0.2.0
Example
Schema creator, table enkunde, public synonym enknd for creator.enkunde
with updating table = enknd, the sys_context call is executed.
with updating table = creator.enkunde, it is not executed
With ODAC 4 this problem didn't exist. Please let me know, why public synonyms aren't supported.
Thanks for your help
This statement is called on a TSmartQuery everytime the query is created and opened. Unfortunately I habe many queries on my forms and this statement isn't very fast either.
Checking the source I found a GetCurrentSchema call that is executing this command when "Updating Table" does not contain a schema. Since I am using public synonyms for all the tables there is never a schema.
I am using ODAC 5.70.1.33 with Delphi 7 and Oracle Database 10g Enterprise Edition Release 10.2.0.2.0
Example
Schema creator, table enkunde, public synonym enknd for creator.enkunde
with updating table = enknd, the sys_context call is executed.
with updating table = creator.enkunde, it is not executed
With ODAC 4 this problem didn't exist. Please let me know, why public synonyms aren't supported.
Thanks for your help