Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Attempting to optimize my app
Message
 
 
À
02/12/2005 15:03:21
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 7 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01072106
Message ID:
01074460
Vues:
21
John,

I Thought that already answered this question in the message #1072217. Am I missing something?

> VFP Help says: "avoid using indexes on fields that contain only a few discrete values, such as a logical field. In these cases, the index contains only a small number of entries, and the overhead of maintaining the index probably outweighs the benefit it provides when searching."
>
>Back to Inmates.cStatus where there are only 2 values, OPEN and CLOSED, it seems VFP is telling me it would NOT be a good idea to index on cStatus. At any point in time, 75% of the records in Inmates are CLOSED. Probably 95% of the work performed by users is on OPEN accounts.
>
>So, should I create the index or not? It seems it would be good to do so but it also seems VFP help is telling me it will not.
>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform