Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select ... Into Array > Invalid subscript reference
Message
From
26/06/2002 18:50:32
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00672286
Message ID:
00672727
Views:
8

Com relação ao SELECT -> Array ou Cursor -> bom teste! :) - Mas vc chegou a testar a diferença em performance? (Isso me interessa - e muito!) Quanto representa???

Oi, Rodolfo.

Fiz o teste e veja:
?Time() && 19:35:46
For i = 1 to 10000
  Select * from Dados\Varas into cursor curVaras
EndFor
?Time() && 19:36:08 >> 22 Segundos
?"---"
?Time() && 19:36:08
For i = 1 to 10000
  Select * from Dados\Varas into array laVaras
EndFor
?Time() && 19:36:32 >> 24 Segundos
Fiz este mesmo teste outras vezes e com intervalos de tempos diferentes e parece que INTO ARRAY sempre demora um pouquinho mais. Assim não tenho porquê usar INTO CURSOR.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform