简体   繁体   English

连接上的非聚集索引

[英]nonclustered index on join

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 在上面的连接中,当我在FaceListID上有非聚集索引时,我可以获得性能优势,因为它的唯一组合并返回一个明确的结果

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 http://www.sqlperformance.com/2012/11/t-sql-queries/benefits-indexing-foreign-keys

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM