Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Базы";
Текущий архив: 2003.05.29;
Скачать: [xml.tar.bz2];

Вниз

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;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.45 MB
Время: 0.009 c
14-95100
Style
2003-04-24 19:51
2003.05.29
Delphi Challenge: И все-таки нужно подумать.


6-94989
azra3L
2003-04-01 09:06
2003.05.29
winsock


4-95155
KateDreamer
2003-04-02 04:07
2003.05.29
DLL


3-94666
Polard
2003-05-12 15:04
2003.05.29
Как узнать все существующие Alias


1-94867
Aleksandr
2003-05-20 11:20
2003.05.29
Что за глюк с вычислениями времени?





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский