Consider the following scenario:
ParrentLookupTable:
- PK: SomeCode CHAR(10)
- has only 5 rows.
- Does not change often
MyTable:
- One million rows are being added daily.
- Has the column SomeCode FK to ParrentLookupTable
- There is no query that search or sort based on SomeCode
Here is the FK definition
ALTER TABLE MyTable CONSTRAINT FK_MyTable_ParrentLookupTable_SomeCode FOREIGN KEY(SomeCode)
REFERENCES ParrentLookupTable (SomeCode)
Should I create an index IX_MyTable_SomeCode?
The index would cost IO during this write intensive workload scenario and I am not sure how it becomes useful?