Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem Updating records in table via SCAN loop
Message
 
 
À
07/06/2002 10:57:43
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00665663
Message ID:
00665994
Vues:
17
>>>Do you know how R.O. affects SCAN WHILE? I often use a SEEK < parent key>, followed by a SCAN WHILE < still on same parent key >.
>>>
>>
>>There's no R.O. is involved in this case because WHILE clause is not R.O. optimizable.
>
>I see. This sort of confirms my suspicions that this approach (SEEK, followed by SCAN WHILE) would be much faster than a SCAN FOR. (As long as it is not combined with a filter, or with a FOR clause.)
>
>Hilmar.

Not necessarily true. About a month ago there was a similar discussion and I ran some tests, confirming that SCAN FOR was faster. I will try to find this thread. So, basically it depends on lots of different factors...

Re: Counting Child Records Thread #653805 Message #653819
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform