Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Benchmark Study: Never use append from
Message
 
À
28/02/1997 08:58:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00022270
Message ID:
00022398
Vues:
47
>>>>Discovered something that folks might find useful.
>>>>
>>>>If you need to append records from one table to another based on a condition you would think (as did I ) of using the command
>>>>
>>>>Append from (sourcetable) for mycondition
>>>>
>>>>WRONG.
>>>>
>>>>Instead do the following
>>>>
>>>>Use sourcetable
>>>>scan for mycondition
>>>> insert into destinationtable (fields) values (sourcetable.fields)
>>>>endscan
>>>>
>>>>Apparently append from doesn't use rushmore and the benchmark difference between the two, even on medium tables (source 10,000 records, dest 1,000 records) was staggaring.
>>>>
>>>>HTH
>>>
>>>VFP help contains list of Rushmore Optimizable Commands ("Potentially Optimizable Commands with FOR Clause"). It includes SCAN and misses "APPEND".
>>
>>But THAT involves 'RTFM' and we all know programmers NEVER do that ;-)
>>
>>Barbara
>
>What is 'RTFM'?

Read the [expletive deleted] Manual.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform