Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best way to find orphans - seek vs SQL
Message
From
23/11/2000 23:20:43
Walter Meester
HoogkarspelNetherlands
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00444141
Message ID:
00445111
Views:
18
Nadya,

>The idea was to avoid scan the whole table :) The scan of table containing 4mln. records may take a long time :) I better give up the idea of timer.

In the former solution it also scans the whole table (Even if the scan has a FOR clause). You may try to add an key index filtered FOR !DELETED() on table2 and try the code. I'll bet you would be surprised with the result. The overhead of the two IF statements are not that significant: I would be surprised it it took more that one or two seconds in the end (= 4 mln records)

B.T.W. I notied the difference between SET DELETE ON and SET DELETE OFF. Are you using a DELETED() Tag on Table1 ?

Walter,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform