Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select - sql optimize with buffering
Message
 
 
To
28/09/2007 11:46:05
Mk Sharma
Shrishti Solutions
Mumbai, India
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01257471
Message ID:
01257596
Views:
19
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--
Previous
Reply
Map
View

Click here to load this message in the networking platform