Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scatter with memo
Message
From
03/06/2003 11:15:17
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
03/06/2003 11:03:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00795601
Message ID:
00795696
Views:
22
>Cetin,
>
>If the APPEND FROM table is large, this will be *very* slow, correct? Won't it it make an entire pass through puncharcactualdata each time through the loop?
>
>>
>>select punchactualdata
>>append from puncharcactualdata for jobnum=punchheader.jobnum
>>* Delete from puncharcactualdata where jobnum=punchheader.jobnum
>>
>>Cetin

No loop there. One pass.
Scan for ... has the same drawback + as it hits a record it should populate the variables first. Append from execution should be faster (especially if no indexes on target).

PS: If VFP8 you might even think of :

insert into ... select ... from ...

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform