Better to use a Clustered index or a Non-Clustered index with included columns?

后端 未结 3 1601
北荒
北荒 2021-01-13 16:25

When I look at the execution plan for a particular query I find that 77% of my cost is in a Clustered Index seek.

Does the fact that I\'m using a clustered index m

3条回答
  •  盖世英雄少女心
    2021-01-13 17:05

    You have a seek already, so benefits may be minimal.

    You can try it though. Options:

    • 2nd non-clustered index, keep original
    • move clustered index to another column(s)

    Are there other good cluster candidates? Note, you always need a unique clustered index (because of uniquifiers + here SO + here). And of course, what is your PK please?

提交回复
热议问题