Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What's faster SEEK or SELECT
Message
De
06/11/2002 15:12:35
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
 
 
À
06/11/2002 14:59:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00719517
Message ID:
00719530
Vues:
14
>Just a question I have in optimizing an application that I'm working on. What's faster a SEEK on an index or a SELECT with a WHERE statement

Hi Ed,

You can determine which is faster by timing a loop of about 100,000 iterations where your SEEK or SELECT statement is in the middle. Do you need to be on the record or just need the values? SELECT won't put you on the record but it will give you the values just as well as the SEEK. If you just want to know if the key value is there you can also use INDEXSEEK() which was created for this purpose.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform