Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fast select becomes slow in form
Message
De
29/10/2003 09:56:07
 
 
À
29/10/2003 03:16:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00843940
Message ID:
00844073
Vues:
33
Hi Kenneth,

try to replay the select on init of form:
lnStartTime = SECONDS()*1000

SELECT DISTINCT Person.*;
FROM cavr!person_source INNER JOIN cavr!person ;
ON Person_source.person_id = Person.person_id;
WHERE Person_source.source_id = '00031' INTO CURSOR XXXX

WAIT WINDOW 'done loading all people' +STR(SECONDS()*1000-lnStartTime)

lnStartTime = SECONDS()*1000

SELECT DISTINCT Person.*;
FROM cavr!person_source INNER JOIN cavr!person ;
ON Person_source.person_id = Person.person_id;
WHERE Person_source.source_id = '00031' INTO CURSOR XXXX

WAIT WINDOW 'done loading all people' +STR(SECONDS()*1000-lnStartTime)
The second run need 5 seconds ?

Fabio
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform