Which is Worse: an Unused Index, or an Un-Indexed Foreign Key? (Dear SQL DBA Episode 16)

preview_player
Показать описание
Should you always index your foreign keys? What if you index your foreign key, and then the index never gets used?

Рекомендации по теме
Комментарии
Автор

Another possibility is to add the foreign key the night before you need it - e.g. a yearly report and remove it afterwards.

carstenhansen
Автор

Sometimes I wish that I work with you :)

NancyMancarious