Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select - sql optimize with buffering
Message
 
 
À
28/09/2007 11:46:05
Mk Sharma
Shrishti Solutions
Mumbai, Inde
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 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01257471
Message ID:
01257596
Vues:
17
The WITH (BUFFERING = .T.) clause requires SQL engine to perform additional work to account for buffered records. It causes queries become slower and partialy optimized.

>how i can optimize :
>
>WITH (BUFFERING = .T.)
>
>if i use select - Sql as below, this is optimization level : Partial
>
>
>local mymemvar
>=sys(3054,11,"mymemvar")
>SELECT qty,amt,plusminamt,Scheme,tdamt,cdamt,excise,taxamt,vatamt,octroi,freight,cnamt,Add,less,tbamt ;
>FROM inward1 with (buffering = .T.) WHERE reco1=lxreco1 INTO CURSOR tempinward1
>WAIT WINDOW mymemvar
>
>
>
>if i use select - Sql as below, this is optimization level : Full
>but not sum the buffered records.
>
>but i want to Sum buffered records also.
>
>
>local mymemvar
>=sys(3054,11,"mymemvar")
>SELECT qty,amt,plusminamt,Scheme,tdamt,cdamt,excise,taxamt,vatamt,octroi,freight,cnamt,Add,less,tbamt ;
>FROM inward1 wHERE reco1=lxreco1 INTO CURSOR tempinward1
>WAIT WINDOW mymemvar
>
>
>
>warm regards,
>mk.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform