Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Search Screen
Message
 
À
25/02/2000 15:21:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00337794
Message ID:
00338628
Vues:
17
FILTER is notoriously slow when selecting a few records from a large table. You might try the following code in the SET FILTER CLICK event:
IF region = "WDC" OR REGION = "SBF"
SELECT maintable
SET FILTER (etc. the way you are doing it now)
ELSE
SELECT maintable
SET ORDER TO region
COPY STRU WITH CDX TO tempfile && Create a temporary data source
SELECT maintable
SEEK "CHIGAGO"
DO WHILE region = "CHICAGO" AND NOT EOF() && Copy all Chicago records
SCATTER MEMO MEMVAR && to the temporary file
SELECT tempfile
APPEND BLANK
GATHER MEMO MEMVAR
ENDDO
ENDIF

Then refresh the gridsource information to point to either the original maintable or tempfile.


Not fancy but it will be MUCH faster.

Regards,

Rudy
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform