Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Indexing with filter
Message
De
13/05/2008 11:26:04
 
 
À
13/05/2008 11:17:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 6 SP3
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01316662
Message ID:
01316666
Vues:
24
This message has been marked as the solution to the initial question of the thread.
>Hello,
>
>I have a table that has a filter set to column1 with the current index as column1. The table has about 80,000 records, and when I set the index to column3, it takes about 10 seconds to change the order (with the current filter set). Do I have to set the indexes to Column1 + column3 in order to speed them up? Or is there another work around?
>
>Thanks,
>Dan

If you want to get subset of records based on column1+column3 values then you should have index expression literally the same. However, you may also have separate index tags on column1 and column3 and run Select-SQL with 2 conditions: Where column1=value1 and column2=value2
You may discard your filter after that.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform