Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Reply
What do you think about GUIDs?
Old 05-23-2008, 08:25 PM What do you think about GUIDs?
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
GUID = Globally Unique IDentifier. It's a little bit like an identity column, but without the distributed bug. What that means is, instead of going 1 -> 2 -> 3 -> you can guess what comes next when another database server is also going 1 -> 2 -> 3, etc, producing clashes, we get a random value. Something like 84D16AF9-6F2C-4EB3-9721-E20746A6A838. There are 32 hex digits, plus 4 dashes.

That means for storage purposes, the column is 16 bytes wide. That isn't morbidly obese, but it would never be featured on the cover of Playboy, either. One particular consideration is that if you have a 4 byte int value, that's 32 bits - just like the CPU and OS on a lot of production DB servers. It's long been speculated that this match is the best possible performance.

So, there are 2 ways you could use a GUID column. It can be a key, or it can be metadata. I'm not asking about just storing them - I'm curious what people's experience has been using GUIDs as keys for DRI, for searching, and so on?
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Learning Newbie is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to What do you think about GUIDs?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.14042 seconds with 12 queries