本文介绍了改善群集索引GUID主键的性能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个具有大量行(10K +)的表,它的主键是GUID.主键是集群的.该表的查询性能非常低.请提供建议以提高效率.
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 suggestions to make it efficient.
推荐答案
您需要使用newsequentialid()代替,请参见此处一些简单的代码来显示Newid和Newsequentialid之间的区别
You need to use newsequentialid() instead see here Some Simple Code To Show The Difference Between Newid And Newsequentialid
这篇关于改善群集索引GUID主键的性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!