Click here to Skip to main content
15,914,419 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: The Proof that a GUID is not unique Pin
ZurdoDev22-Oct-13 3:56
professionalZurdoDev22-Oct-13 3:56 
JokeRe: The Proof that a GUID is not unique Pin
SortaCore22-Oct-13 22:20
SortaCore22-Oct-13 22:20 
GeneralRe: The Proof that a GUID is not unique Pin
Magnamus23-Oct-13 5:58
Magnamus23-Oct-13 5:58 
GeneralRe: The Proof that a GUID is not unique Pin
Herbie Mountjoy22-Oct-13 19:57
professionalHerbie Mountjoy22-Oct-13 19:57 
GeneralRe: The Proof that a GUID is not unique Pin
Kornfeld Eliyahu Peter22-Oct-13 2:39
professionalKornfeld Eliyahu Peter22-Oct-13 2:39 
GeneralRe: The Proof that a GUID is not unique Pin
Nicholas Marty22-Oct-13 2:58
professionalNicholas Marty22-Oct-13 2:58 
GeneralRe: The Proof that a GUID is not unique Pin
PIEBALDconsult22-Oct-13 16:22
mvePIEBALDconsult22-Oct-13 16:22 
GeneralRe: The Proof that a GUID is not unique Pin
StatementTerminator23-Oct-13 4:07
StatementTerminator23-Oct-13 4:07 
But...but...integers fit so much more nicely into a query string!

*duck and cover*

Seriously though, one of the few uses I've found for GUIDS is to allow the keys in your tables to be easily moved between different databases, for instance to move between a production and test DB. But otherwise integers are more efficient and easier to work with.

As for the uniqueness debate, who cares? Raise your hand if you have ever seen a duplicate GUID pop up in a real-world situation. It's like arguing about the randomness of pseudo-random number generators, it's a moot point for almost all real-world implementations.

If you're generating thousands of GUIDs per second in a system that you expect to be around for centuries, then maybe you should worry about it. Otherwise, it's like worrying about the server being taken out by a meteor hit. And even if you're unlucky enough to have a collision, you'd have to have a pretty fragile system for that to be a huge disaster; you'll probably have a dupe showing up in a join somewhere, not that hard to find and fix.
GeneralRe: The Proof that a GUID is not unique Pin
IndifferentDisdain23-Oct-13 4:20
IndifferentDisdain23-Oct-13 4:20 
GeneralRe: The Proof that a GUID is not unique Pin
Magnamus23-Oct-13 6:02
Magnamus23-Oct-13 6:02 
GeneralRe: The Proof that a GUID is not unique Pin
PIEBALDconsult23-Oct-13 10:30
mvePIEBALDconsult23-Oct-13 10:30 
GeneralRe: The Proof that a GUID is not unique Pin
MehGerbil23-Oct-13 2:25
MehGerbil23-Oct-13 2:25 
GeneralRe: The Proof that a GUID is not unique Pin
Eddy Vluggen22-Oct-13 3:01
professionalEddy Vluggen22-Oct-13 3:01 
GeneralRe: The Proof that a GUID is not unique Pin
SortaCore22-Oct-13 22:34
SortaCore22-Oct-13 22:34 
GeneralRe: The Proof that a GUID is not unique Pin
Captain Price22-Oct-13 3:14
professionalCaptain Price22-Oct-13 3:14 
GeneralRe: The Proof that a GUID is not unique PinPopular
Rage22-Oct-13 3:21
professionalRage22-Oct-13 3:21 
GeneralRe: The Proof that a GUID is not unique Pin
ZurdoDev22-Oct-13 3:58
professionalZurdoDev22-Oct-13 3:58 
GeneralRe: The Proof that a GUID is not unique Pin
Gregory Gadow22-Oct-13 3:43
Gregory Gadow22-Oct-13 3:43 
GeneralRe: The Proof that a GUID is not unique Pin
harold aptroot22-Oct-13 3:49
harold aptroot22-Oct-13 3:49 
GeneralRe: The Proof that a GUID is not unique Pin
peterchen22-Oct-13 3:57
peterchen22-Oct-13 3:57 
GeneralRe: The Proof that a GUID is not unique Pin
Jan Holst Jensen223-Oct-13 0:41
Jan Holst Jensen223-Oct-13 0:41 
GeneralRe: The Proof that a GUID is not unique Pin
svella23-Oct-13 3:39
svella23-Oct-13 3:39 
GeneralRe: The Proof that a GUID is not unique Pin
RafagaX23-Oct-13 4:51
professionalRafagaX23-Oct-13 4:51 
GeneralRe: The Proof that a GUID is not unique Pin
code_junkie23-Oct-13 7:32
code_junkie23-Oct-13 7:32 
GeneralRe: The Proof that a GUID is not unique Pin
dpminusa23-Oct-13 8:22
dpminusa23-Oct-13 8:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.