Helene
Member³
We have a serious problem with execution times for some "system generated" queries against the oracle data dictionary. Particularly this one is heavy:
"select constraint_name, column_name from sys.all_cons_columns where owner =
wner and table_name = :table_name and constraint_name not like 'SYS_C%' order by constraint_name, position"
This is executed quite frequently (app. 1200 times in 2 hours), and costs 11.200 consistent gets on each execution !
We are not using the EnforceConstraints property. I have checked all pas and dfm-files throughout the project, and it is always set to false.
The query seems to be generated from a data module in which we have some oracle datasets, connected via the oracleprovider to client datasets. All are set to readOnly. I have tried to change a number of different properties in order to get rid of this problem, but I cannot find any way to achieve this. I can see that some of the SQL is generated in the PSGetIndexDefs function. This function is also bad with regards to number of network roundtrips. It generates one new network roundtrip for each constraint instead of reading information about all interesting constraints for one table in one roundtrip.
Marco, I don't know if you remember that I have been in contact with you a quite long time ago regarding this problem. Do you have any new information about this? If I understood you right back then, you would look into the problem so that we could get rid of these unnecessary (?) select's.
With regards
Helene
"select constraint_name, column_name from sys.all_cons_columns where owner =

This is executed quite frequently (app. 1200 times in 2 hours), and costs 11.200 consistent gets on each execution !
We are not using the EnforceConstraints property. I have checked all pas and dfm-files throughout the project, and it is always set to false.
The query seems to be generated from a data module in which we have some oracle datasets, connected via the oracleprovider to client datasets. All are set to readOnly. I have tried to change a number of different properties in order to get rid of this problem, but I cannot find any way to achieve this. I can see that some of the SQL is generated in the PSGetIndexDefs function. This function is also bad with regards to number of network roundtrips. It generates one new network roundtrip for each constraint instead of reading information about all interesting constraints for one table in one roundtrip.
Marco, I don't know if you remember that I have been in contact with you a quite long time ago regarding this problem. Do you have any new information about this? If I understood you right back then, you would look into the problem so that we could get rid of these unnecessary (?) select's.
With regards
Helene