Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do you decide the length of GUID field?
Message
De
05/08/2008 11:30:48
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
05/08/2008 05:10:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01336497
Message ID:
01336578
Vues:
15
>Hi,
>
>For me I normally set the length only base on my estimation on how large the table probably will grow.
>The larger the lengthier, things like 10, 12, 16, 24 or even 32 chars in length.
>
>I wonder what are the key factors everyone else is considering when trying to determine the length of a GUID field (let say it is used as primary/surrogated key field of tables).
>
>Is there any good article out there discussing how should one decide the length of a GUID field (be it a sequential one or non-sequential)?

I use an Integer (4 bytes); the number is sequentially assigned, from values stored in a table. The concept is similar to the AutoIncrement, but I designed this in an older version of VFP (and I prefer to keep the control of the sequential numbers myself, so I keep my old system).

GUIDs are useful if users are not permanently connected. GUIDs are supposed to give unique values (based, in part, on the fact that each network card has a unique serial number). However, GUIDs are fairly long - 16 bytes.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform