3

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

Sandip Bantawa
  • 2,822
  • 4
  • 31
  • 47
  • 1
    **YES!** most definitely. Putting a nonclustered index on any foreign key columns is an accepted best practice. It helps because thanks to the index, the values in that column are presented to the query optimizer in a sorted way - so it can use more efficient merging operations. – marc_s Mar 25 '13 at 06:57

1 Answers1

3

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

freshbm
  • 5,540
  • 5
  • 46
  • 75
veljasije
  • 6,722
  • 12
  • 48
  • 79