Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL not optimized
Message
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
01137029
Message ID:
01137034
Views:
18
>A really weird problem. I have a Foxdos table with some simple indexes stored in a CDX file.
>
>orderno index on orderno
>custno index on custno
>trandate index on trandate
>
>Here is the weird part. I try and run a SQL against the table in VFP9 and it is slow. I check with SYS(3054) and it says optimized is none. My SQL is very simple such as.
>
>Select *;
> From testtable;
> Where orderno="1234"
>
>Yet if I change the above field from orderno to trandate it becomes fully optimized. So VFP9 can use Rushmore from Dos, but not on strings.
>
>Any ideas on what I might be missing.
>
>TIA,
>Dale

Are you selecting to cursor or table? If to the cursor, you may add NOFILTER clause.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform