Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.05.29;
Скачать: CL | DM;

Вниз

GUID и PK   Найти похожие ветки 

 
Niki   (2003-05-12 13:35) [0]

Добрый день, возник вопрос:
заметна ли разница в использовании GUID как PrimaryKey, по сравнению с типом integer, и в чем она выражается?
какие еще пакости можно встретить при работе с GUID?
Спасибо


 
Niki   (2003-05-12 16:00) [1]

Close topic. Found.

The uniqueidentifier data type has several disadvantages:

The values are long and obscure. This makes them difficult for users to type correctly, and more difficult for users to remember.

The values are random and cannot accept any patterns that may make them more meaningful to users.

There is no way to determine the sequence in which uniqueidentifier values were generated. They are not suited for existing applications that depend on incrementing key values serially.

At 16 bytes, the uniqueidentifier data type is relatively large compared to other data types such as 4-byte integers. This means indexes built using uniqueidentifier keys may be relatively slower than implementing the indexes using an int key.

Consider using the IDENTITY property when global uniqueness is not necessary, or when having a serially incrementing key is desirable.



 
Zz_   (2003-05-12 16:04) [2]

http://www.sql.ru/forum/actualthread.aspx?bid=1&tid=24507


 
NAlexey ©   (2003-05-12 16:04) [3]

Самообслуживание?



Страницы: 1 вся ветка

Текущий архив: 2003.05.29;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.013 c
14-95012
alvin
2003-05-13 09:33
2003.05.29
MS Help WorkShop


3-94719
kostas
2003-05-08 12:26
2003.05.29
Запросы TIBQuery в разных потоках (нитях.TTheard)


3-94686
Oleg_Em
2003-05-07 11:19
2003.05.29
Доступ к paradox без BDE или ODBC


3-94771
stkatch
2003-05-12 11:32
2003.05.29
Установка значения generator


14-95105
LER
2003-05-07 12:49
2003.05.29
Задачка.