Is it always a good idea to index foreign keys or should this be done only when parent rows are deleted? That is, do indexes on foreign keys improve Select, Insert, or Update performance. I've heard 'do it always' and 'only when parent rows often deleted'.
If a general rule is to use indexable predicates, would this also not generally apply to joins.
Thanks.
If a general rule is to use indexable predicates, would this also not generally apply to joins.
Thanks.