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

前端 未结 7 1996
日久生厌
日久生厌 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:15

    Most of the times it should not be used as the primary key for a table because it really hit the performance of the database. useful links regarding GUID impact on performance and as a primary key.

    1. https://www.sqlskills.com/blogs/kimberly/disk-space-is-cheap/
    2. https://www.sqlskills.com/blogs/kimberly/guids-as-primary-keys-andor-the-clustering-key/

提交回复
热议问题