Improving performance of cluster index GUID primary key

前端 未结 6 1933
别跟我提以往
别跟我提以往 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:17

    You need to analyze your query. We can only guess why your queries perform badly without viewing the execution plan (which you can get quiet easily from SQL Server or Oracle).

    Considering that a GUID is a 128-bit value (if stored raw), a GUID cuts the density of the data and index blocks by as much as 50% (in the case of the primary key index) so make sure GUID is appropriate.

    But that might not be the problem, so review the query plan. It could be several other issues.

提交回复
热议问题