Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is better and faster
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 8 SP1
OS:
Windows XP SP2
Divers
Thread ID:
00977833
Message ID:
00977872
Vues:
44
This message has been marked as a message which has helped to the initial question of the thread.
>. What do you think about an index on Middle Initial?

Assuming the list is not so large that last_first is fairly distinctive and assuming many of your middle names are single intitials or empty, the index is probably hurting you.

This is similarly to the argument for/against an index on deleted.
Consider a search on "John C. Smith". You have a "John C. Smith" and "John A. Smith". Bringing over the portion of the middle initial index that's "C." for the entire DBF, probably requires more bandwith than bringing over the wire and than excluding (what the Select does without the index) the extra record that matchs just last+first. This would be an example of where full optimization might not be the best thing.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform