Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SET KEY and LOCATE FOR
Message
De
28/09/1998 20:53:31
 
 
À
28/09/1998 15:59:48
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00141608
Message ID:
00141703
Vues:
19
>No lectures about views, please.
>
ROFL!

>Is LOCATE FOR going to be relatively efficient for a situation where SET KEY limits the records to, oh, a few dozen records at most? IOW, does LOCATE FOR use the SET KEY index? I have hardly ever issued a locate, since have been scarred by them in Clipper days. :-)

Since LOCATE is optimizable it shouldn't matter about the SET KEY if your LOCATE statement includes the SET KEY condition
Let's say Customer is indexed on CustKey and you want a "Fred" who lives in NY

LOCATE FOR CustKey="FRED" AND State= "NY"
will be blindingly fast if there are few "Freds" in NY.
HTH
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform