Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Locate vs Seek
Message
De
22/08/2005 05:18:04
 
 
À
21/08/2005 11:30:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
01042529
Message ID:
01042616
Vues:
19
>I have tried with 600,000 records, thanks God it doesn't show any difference. I used views, I guess that help.
>
>thanks for the advise
>
>regards,
>
>Jerry

Are you sure?
CLEAR

CREATE CURSOR myCursor (a i DEFAULT RAND()*1000000)
FOR K=1 TO 600000
	APPEND BLANK 
NEXT
INDEX ON A TAG TA
SET ORDER TO
TEST(10000)
SET ORDER TO 1
?
? "with a order active"
TEST(100)


PROCEDURE TEST(N)
T1=SECONDS()
	FOR K=1 TO m.n
		SEEK 23 ORDER 1
	NEXT
? "SEEK   #Test=",m.n at 20,SECONDS()-T1
T1=SECONDS()
	FOR K=1 TO m.n
		LOCATE FOR A=23
	NEXT
? "LOCATE #Test=",m.n at 20,SECONDS()-T1
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform