What are the best practices for using a GUID as a primary key, specifically regarding performance?

前端 未结 7 1752
日久生厌
日久生厌 2020-11-22 09:22

I have an application that uses GUID as the Primary Key in almost all tables and I have read that there are issues about performance when using GUID as Primary Key. Honestly

7条回答
  •  南笙
    南笙 (楼主)
    2020-11-22 10:19

    If you use GUID as primary key and create clustered index then I suggest use the default of NEWSEQUENTIALID() value for it

提交回复
热议问题