Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COPY TO ARRAY against a cursor?
Message
From
09/08/2019 02:18:33
 
 
To
08/08/2019 18:35:59
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01669872
Message ID:
01670000
Views:
72
>>>OK I see we don't understand each other and the same test has very different results on either side which makes me think it is not reliable at all. Probably you wouldn't use this always against the sample "Employee" table. I could play with the test a bit and get much different striking results that would tell COPY TO ARRAY is slower more than 100x. ie:
>
>Tamar's paper made the point that COPY TO ARRAY slows down a lot with larger resultsets. I use it for fairly small ones- max 30 array elements. Any more than that and I'd be looking for ways to use a cursor.

Perhaps each new row increases the array instead of increasing by a larger amount to create a buffer and pruning excess rows (once) at the end of the command duration - StringBuffer/Builder AFAIR increase 50% of previous buffer size, which could lead to memory trouble when increasing large arrays
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform