Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why is it so slow?
Message
 
To
15/08/2002 10:10:34
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00689948
Message ID:
00689959
Views:
19
>Hi
>
>I have a table that contains 192,216 records, 177,493 of these are deleted records.
>
>I have a DELETED() Index on the table, yet when I run a command like SCAN FOR...ENDSCAN on an indexed field, it takes absolutely ages. This is over a 1MB WAN by the way, but it still should only take seconds, it takes minutes, about 3 to be exact.
>
>What am I doing wrong here?
>
>Thanks
>Kev

1. Be sure to have NOT DELETED() (in the FOR clause)
2. Select that index (!)
3. Have SET DELETED ON

But I guess that's all obvious (?)

4. Begin the SCAN with a SEEK (may differ)
5. Have a WHILE in the SCAN (shouldn't differ opposed to the deleted records).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform