Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Surrogate Primary Keys - Integer or Character ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00397596
Message ID:
00397656
Vues:
16
>So you are saying that there is no performance difference in seeking a character value as apposed to a numeric (integer) value?

For small character fields, the performance gain is neglible (< 1.5%) for SELECT statements but very significant for Seek (approx 90%). However, we are talking about an increase from 0.0000128 seconds (integer) to 0.0000244 seconds (4-byte character).

These testes were done using a PII 300MHz and a table with 100,000 records.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform