SQL Server Clustered Index - Order of Index Question

后端 未结 9 1115
梦毁少年i
梦毁少年i 2020-12-05 12:34

I have a table like so:

keyA keyB data

keyA and keyB together are unique, are the primary key of my table and make up a clustered index.

9条回答
  •  自闭症患者
    2020-12-05 12:54

    The best thing you can do is to try both solutions and measure the execution time.

    In my experience, index tuning is all but exact-science.

    Maybe having keyB before keyA in the index column order would be better

提交回复
热议问题