Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Filter very slow
Message
 
À
12/08/1997 11:30:39
Larry Long
ProgRes (Programming Resources)
Georgie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00044161
Message ID:
00044618
Vues:
26
>Whenever you set filter you need to...
>1)Ensure that you have an index on the field you are filtering
>2)set order to 0, otherwise you essentially get 2 filters fighting each other
>3)if you have set deleted on, you should have an index on deleted(), something like "INDEX ON DELETED() TAG ISDELETED"
>
>In most cases it is better to use an SQL Cursor for most filters.

Hi,

Thanks, but this doesn't help. Maybe filters are supossed to be that slow. I have found a good solution (without a SQL Cursor). Instead of a filter I use a master table (for the organisation button) which is linked to my main table (as child). With a little coding also the navigation buttons work well. This method is very fast: more than a million records are no problem.

Andreas
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform