March 13, 2004 at 12:12 pm
March 13, 2004 at 12:43 pm
On thinking about this could cascade delete be doing record based operations vs set based operations? (since my own constructed deletes would be using set based ops)
March 15, 2004 at 12:14 am
- are there any indexes on the foreign-key-columns to support the delete-join ? (with all child-tables)
- If yes, are the columns in the same columnorder and sortorder(asc/desc) as the parent table ?
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data/code to get the best help[/url]
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Need a bit of Powershell? How about this
Who am I ? Sometimes this is me but most of the time this is me
March 15, 2004 at 6:27 am
yes there are
although the pk on the parent isn't clustered
when I overlayed a non-clustered index on top of the ci, performance improved and was similar to the manual deletes performed without RI (by turning off the constraints using nocheck and constructiong individual statements joining acrossed the relationship columns chain)
some of the tables are children of multiple parents though and in that case the fk's are multiple column clustered indexes with higher selectivity column being the lower ordinal
performance did seem to improve if I overlayed a single column non-clustered index on top of the clustered indexes
March 15, 2004 at 7:02 am
as you have noticed, RI should have an index per FK-definition (unless the overlap is matching columnorder and sortdirection), otherwize indexes might not be used for RI-purposes.
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data/code to get the best help[/url]
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Need a bit of Powershell? How about this
Who am I ? Sometimes this is me but most of the time this is me
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply