Guid Primary /Foreign Key dilemma SQL Server

后端 未结 5 1738
情话喂你
情话喂你 2020-12-08 08:32

I am faced with the dilemma of changing my primary keys from int identities to Guid. I\'ll put my problem straight up. It\'s a typical Retail management app, with POS and ba

5条回答
  •  旧时难觅i
    2020-12-08 09:08

    Using GUID or int for PK really depends on the scenario. There will be a performance hit changing from INT to GUID. GUID are 4 times bigger than an INT. There is a good article here about the pros and cons of using GUIDs.

    Why do you have to change from Integers anyway?

提交回复
热议问题