Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Index Expression Not Helping in Group/Distinct
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00360329
Message ID:
00361235
Views:
27
That smells bad. Can you recommend a workaround?





>>I have a 150,000-record free table with a 239-char field called cPath. First I did a "index on cPath tag cPath". Doing a "set order to" and then "select cPath from mytable distinct" takes 82.58 seconds. Then I tried "select cPath from mytable group by cPath" and it took 67.90 seconds.
>>
>>Why am I not getting subsecond response? What's the best wat to optimize this query? Thanks.
>
>Steve,
>
>Because neither DISTINCT or GROPUP BY are optimizable opterations.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform