Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
String vs. Integer PK values.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Divers
Thread ID:
01414751
Message ID:
01415035
Vues:
50
>Hi Naomi,
>
>>Would you please list all the advantages vs. disadvantages of GUID vs. Integer (in your opinion)?
>
>Advantages:
>
>GUIDs can be generated on the client without additional traffic to the server. Generating keys on the client avoids the need for translating primary keys when inserting data.
>
>GUIDs can be used in replication and offline scenarios
>
>GUIDs do not require a serialization of key generation requests and are therefore by definition scalable
>
>GUIDs values are vastly distinct which distributes values over indexes
>
>GUIDs discourage that developer from using the PK for anything but the PK
>
>
>Disadvantages:
>
>GUIDs values are vastly distinct which distributes values over indexes
>
>GUIDs require more storage space (though not that much(
>
>GUIDs require more I/O resources
>
>For testing queries you have to copy and paste the key instead of reading and typing. You can't really write it on paper if you work with paper a lot.

Thanks a lot.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform