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

>I answered you once, but unfortunately lost the connection :(
>Briefly, I ran few tests on my local machine (through the network) using your, Trey's and David's idea.
>Table1 ~ 400000rec, Table2 ~300000rec.
>Trey's idea - 68s.
>Your Indexseek (should be !indexseek, BTW) - 76sec with set deleted on and 69sec. with set deleted off.

Hmmm. very strange.... but wait, I might have been confusing IndexSeek with the KEYMATCH function. Just try:

SCAN FOR !KEYMATCH(ProgID,nYourTagNo,"Table2")

Please, let me know the results.

Walter,





>David's SQL - very strange thing - first time I ran it, it ran quite fast, but then I decided to repeat tests and measure the speed, they extremelly slow, so I killed VFP each time...
>
>>Nadya,
>>
>>Did you try all experiments on a network ? The solution with INDEXSEEK should be faster...., at least in theory... One trap you easely fall into is that VFP and the OS buffer large protions of tables and indexes. Testing on a workstation somewhere on a network provides more reliable results. It maybe wise to test in an environment that is the closest to the environment of production.
>>
>>Walter,
>>
>>>Hi Trey,
>>>
>>>Your idea seems to be the fastest method. I tried Walter's idea - the result is almost the same. David's SQL ran very quickly the first time, but all my other experiments with the same SQL were so slow, that I didn't wait the finish of SQL. I tried on the smallest ~400000 rec. in child and ~300000rec. in parent. Took 68 s.
>>>
>>>Thanks.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform