문제

I have been wondering if having nonclustered index on the join would improve performance?? like

INNER JOIN FaceList fl ON fl.FaceListID = flf.FaceListID

in above join can I get performance benefit when I have nonclustered index on FaceListID since its unique combination and return a definite result

Any link or suggestion is appreciated

도움이 되었습니까?

해결책

You definitely need to put non-clustered index on foreign-key column:

Read more:

http://www.sqlperformance.com/2012/11/t-sql-queries/benefits-indexing-foreign-keys

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top