Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need a a better way to do this
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00983858
Message ID:
00984029
Views:
18
Tried that first, before the scan.

Takes forever and a day.


>Kevin,
>
>
>update resh ;
>   set ...
>   where id in ( select id from localtable )
>
>
>>I query a network table to a local table. The local table is
>>used to populate a list.
>>
>>For every record in the local table, I need to mark it's network
>>copy so that no other users can access it.
>>
>>I have:
>>
>>** Get the alias of the local table
>>cAlias = ALIAS()
>>			
>>** Set the index of the network table
>>SET ORDER TO Id IN Resh
>>			
>>** Loop once for each local record
>>SELECT (cAlias)
>>SCAN
>>
>> ** Locate the network record
>> SELECT Resh
>> =SEEK(&cAlias..Id)
>>				
>> ** Store the batch id and user name to the network record
>> REPLACE IN Resh BatchNo WITH .nBatchNo,;
>>                 Used_By WITH oApp.cUserId;
>>                 NEXT 1
>>
>>ENDSCAN
>>
>>
>>The problem is that this is really slow.
>>
>>Anyone know how to speed this up?
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform