Robert W.B. Linn´s Software, Beispielprojekte und Tipps zu TurboDB, TurboDB VCP, TurboDB Studio, Visual Data Publisher
   
Howto ... optimize SQL statements?
TurboDB VCL Übersicht  Alle Topics 
Komponenten TurboDB und TMS Component Pack  »  TurboDB - HowTo  »  Howto ... optimize SQL statements?  | 

Parsing of long queries take their time. To optimize use parameter.

Example: TdbQuery.SQL.Text :
 INSERT INTO MyTable (Field1, MemoField1) VALUES("XXX", :MyMemo)

During SQL statement execution the memocontent can be set using
 TdbQuery.ParamByName('MyMemo').Value := 'this is the 50K memocontent...';
This statement will not be parsed everytime, because it is clear which data needs to be filled in.
The data will be written directly.
Tested with TurboDB 4 für VCL.


Letzte Änderung 02.01.2012 18:53 Erstellt mittels KALHelp Version 6.8 (02-01-2012) (alle Rechte vorbehalten) (c) Robert W.B. Linn @53° 38' 60''N 9° 48' 0''E