Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COPY TO optimization
Message
 
 
À
08/12/2005 15:00:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP
Network:
Novell 6.x
Database:
MySQL
Divers
Thread ID:
01076343
Message ID:
01076372
Vues:
28
This message has been marked as the solution to the initial question of the thread.
>Thanks for your reply..I am actually doing what you are saying..here is the complete code:
>
>INDEX ON BINTOC(SIL_INV_FK) + BINTOC(SIL_INV_CFK) TAG SILMAIN
>SET ORDER TO SILMAIN
>COPY TO v_InventoryTemp FOR BINTOC(SIL_INV_FK) + BINTOC(SIL_INV_CFK) == BINTOC(tnINVPK) + BINTOC(tnINVCPK)
>
>where tnINVPK/CPK contain the correct values at runtime. COPY TO *is* giving me the correct records, but its performance seems very, very poor compared to that of the SELECT command.

Change it to
INDEX ON BINTOC(SIL_INV_FK) + BINTOC(SIL_INV_CFK) TAG SILMAIN
SET ORDER TO SILMAIN

= SEEK(BINTOC(tnINVPK) + BINTOC(tnINVCPK))
COPY TO v_InventoryTemp WHILE BINTOC(SIL_INV_FK) + BINTOC(SIL_INV_CFK) = BINTOC(tnINVPK) + BINTOC(tnINVCPK)
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform