Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Foxpro 9 Select very slow
Message
 
 
À
11/12/2011 13:34:07
Andy Roth
Neyenesch Printers
Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01530823
Message ID:
01530827
Vues:
73
Why do you need to select everything from the Training? In any case, try adding NOFILTER at the end if you indeed want to select all records into a cursor.

>For some reason this select statement runs very slow.
>this has been going on for about 6-9 months but have not had time to deal with it.
>
>
>There are 200 records in the Foxpro table
>Takes about a minute to run
>
>SELECT * from training ORDER by Description INTO CURSOR alltrain
>SELECT training
>USE
>SELECT AllTrain
>
>_SCREEN.Height=gnMaxHeight
>_SCREEN.Width=gnMaxWidth
>
>GOTO TOP
>REPORT FORM AllTrain.frx PREVIEW
>USE
>
>
>I have a few of these in this small application and the behavior happens in another small app
>This is the query from it.
>
>CLOSE TABLES
>nYear=0
>SELECT 0
>USE invoices ORDER reportdate
>*REINDEX
>Do FORM Years
>PUSH MENU _MSYSMENU
>
>_SCREEN.Height=gnMaxHeight
>_SCREEN.Width=gnMaxWidth
>
>REPORT FORM income.frx FOR YEAR(invoices.Received)=nYear OR EMPTY(invoices.Received) NOCONSOLE PREVIEW
>
>_SCREEN.Height=gnHeight
>_SCREEN.Width=gnWidth
>
>
>nYear=0
>POP MENU _MSYSMENU
>
>SELECT invoices
>USE
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform