We have some large tables that have many records inside. These tables have reasonable foreign keys for keeping up the RI.
Also the child tables that share the Id of the basic tables have many records too.
We are having difficultly that is to say the performance is extremely low while attemping to delete multiple records from the basic table.
I am plannig to put indexes on child tables to improve the delete performance.BUT those child tables also carry many critical data and they have different indexes for speeding up fetch performance and their fetch query results are good.
What confuses me is that:
Would it be logical if I put more indexes on child tables in order to speed up the delete performance of the basic table(s)?Since these child tables have indexes of their own,I won't have any chance of reorganizing my table with that new index because it may improve my delete performance but will decrease my fetch performance?
As a summary what is the best way to optimize the delete performance without decreasing the fetch performance of my queries in that situation?
Thanks.
Salih Sipahi
Software Engineer.
City of Istanbul Turkey
s.sipahi@sahinlerholding.com.tr
Also the child tables that share the Id of the basic tables have many records too.
We are having difficultly that is to say the performance is extremely low while attemping to delete multiple records from the basic table.
I am plannig to put indexes on child tables to improve the delete performance.BUT those child tables also carry many critical data and they have different indexes for speeding up fetch performance and their fetch query results are good.
What confuses me is that:
Would it be logical if I put more indexes on child tables in order to speed up the delete performance of the basic table(s)?Since these child tables have indexes of their own,I won't have any chance of reorganizing my table with that new index because it may improve my delete performance but will decrease my fetch performance?
As a summary what is the best way to optimize the delete performance without decreasing the fetch performance of my queries in that situation?
Thanks.
Salih Sipahi
Software Engineer.
City of Istanbul Turkey
s.sipahi@sahinlerholding.com.tr