Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Locate for using WITH is extremely slow..Why?
Message
 
 
À
14/11/2002 05:27:24
Geert Van Snik
Zorgned Automatisering Bv
Wageningen, Pays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00722580
Message ID:
00722592
Vues:
18
Hi!

Did you try following:

LOCATE FOR IDcolumnname == (.ID)

???

>Hi There.
>
>We discovered an extremely slow Locate statement in our application.
>When using LOCATE FOR and applying a WITH statement for the condition it is better to take a lunchbreak.
>
>for instance;
>where Thisform.ID is a formvariable storing the ID of the record to be found
>
>With Thisform
>LOCATE FOR IDcolumnname == .ID
>Endwith
>
>takes upto 10 seconds while
>
>LOCATE FOR IDcolumnname == Thisform.ID
>
>Takes less then 1 second
>
>Why??
>(a SEEK statement does not appear to be affected)
>
>Geert van Snik
>Zorgned Automatisering B.V.
>Wageningen, The Netherlands
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform