Improving performance of cluster index GUID primary key

前端 未结 6 1940
别跟我提以往
别跟我提以往 2020-11-29 09:58

I\'ve a table with large number of rows (10K+) and it primary key is GUID. The primary key is clustered. The query performance is quite low on this table. Please provide sug

6条回答
  •  北荒
    北荒 (楼主)
    2020-11-29 10:12

    Please avoid creating clustered index for lenghty string columns. GUID will have 36 char. It will reduce the query performance even you have created as clustered index. for better practice, use integer identity columns.

提交回复
热议问题