Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COPY TO ARRAY against a cursor?
Message
De
09/08/2019 02:18:33
 
 
À
08/08/2019 18:35:59
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., Nouvelle Zélande
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01669872
Message ID:
01670000
Vues:
73
>>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform