Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How To Do This SQL
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01055122
Message ID:
01056065
Views:
21
In this case, 12 records should have been deleted. The SELECT was not
much faster.


>Kevin,
>
>How many records are deleted by this statement? How fast is SELECT for the same JOIN?
>
>>
>>I'm having a problem with these 2 commands. The first takes 29 seconds to
>>run against 849,000 records on the local PC, and the second takes 40 seconds.
>>
>>cAlias contains the name of a temp table, created on the fly in the query
>>routine. There is an index on DtId. Since this will be running on network data, and
>>is called when the user clicks Save, they are entirely too slow.
>>
>>I'm tring to remove these records before they are re-saved. Any ideas on how to
>>do this faster?
>>
>>
>>DELETE Commits;
>>  FROM Commits;
>>  JOIN &cAlias ON &cAlias..DtId = Commits.DtId
>>
>>DELETE FROM Commits;
>> WHERE DtId IN;
>> (SELECT DtId FROM &cAlias)
>>
>>
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