Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Index Expression Not Helping in Group/Distinct
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Index Expression Not Helping in Group/Distinct
Divers
Thread ID:
00360329
Message ID:
00360329
Vues:
57
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform