Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
String vs. Integer PK values.
Message
From
27/07/2009 13:05:25
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01414751
Message ID:
01414802
Views:
60
>>PMFJI -- here are the main advantage and disadvantages. The disadvantages are GUIDs take up more space and are slightly slower to process, neither of which is a major issue IMO. The advantage is GUIDs are guaranteed to be globally unique (that's what the G stands for), which can be important if data is spread across servers.
>
>I'd like to see some numbers here - e.g. the performance difference with numbers. I guess they are available on the net and probably even here in UT, but may be you or someone can provide a direct reference.

On numerous occasions I've been forced to work with guids simply because I was interfacing with a 3rd party app or tool that used guids for PKs. In that case, it was an FK in my table. Only a couple of times have I chosen a guid as a PK in my app though and then only because it was in the requirements. I reallly didn't notice any performance degredation but then it would probably show up as the # of records grew ( > 100,000 as an example).
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Reply
Map
View

Click here to load this message in the networking platform