Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ASCENDING and DESCENDING indexes?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00192865
Message ID:
00193499
Views:
19
Hi Rich,
It is true that the ORDER BY clause supports ascending and descending; unfortunately it executes slowly. Especially for large result sets, it is much faster to index the output by using INDEX ON rather than ORDER BY.
To tell the truth, I haven't benchmarked this since the early days of SQL in FP2x, but I don't think anything has changed. FP's SQL-Select is blindingly fast, but the same is not true (or was not true) for the ORDER BY clause.
You could benchmark the performance difference if you need to be sure about this. I try to avoid ORDER BY except for small result sets.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform