Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Locate vs Seek
Message
 
 
À
20/08/2005 21:25:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
01042529
Message ID:
01042531
Vues:
20
>when I first started VFP year ago, someone told me that in VFP, Locate is faster than Seek, since then I used locate all over my app. Now I'm planning to move my database from .dbf to MySQL, I wonder if the samething also apply to MySQL.


Hi Jerry,

You were lied to. In most cases SEEK is faster than LOCATE but it requres creating of compound indexes if you have to search for more than one field at the time.
However it's irrelevant to the client-server databases because they either don't support or are inefficient in the record based processing. For the cient-server backend you would use set oriented access - queries.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform