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

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

    Having sequential ID's makes it a LOT easier for a hacker or data miner to compromise your site and data. Keep that in mind when choosing a PK for a website.

提交回复
热议问题