Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Big table performance
Message
From
09/07/1999 14:29:55
Kenneth Downs
Secure Data Software, Inc.
New York, United States
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00239501
Message ID:
00239564
Views:
8
Jim,

A few things:

>I have a 1 million row table with a primary key of RECNO()

This is unnecessary. You can always just issue Goto x where x is any record number.

>
>1) SELECT * FROM table WHERE PriKey>=N AND PriKey>2) SEEK followed by COPY TO ARRAY
>3) SEEK followed by SCAN
>

I would at least experiment with:

SET ORDER TO
SET DECIMALS TO 9
GOTO INT(RAND()*(RECC()-100))
COPY NEXT 100 TO....

This is the most streamlined approach I can think of. In a situation like this you are actually trying to get rid of VFP's helpful optimization stuff, which can't pay back the overhead it chews up.

Hope this helps.
Previous
Reply
Map
View

Click here to load this message in the networking platform