|
AnyDAC
|
Optimizes dataset functionality for batch updates.
|
Parameters |
Description |
|
AWithDelete: Boolean = False |
True if after call application will also delete records. |
Use BeginBatch method to disable resources consuming operations and setup dataset to perform maximum fast updates. The BeginBatch call disables:
If batch algorithm calls Delete method, then set AWithDelete to True. BeginBatch calls cannot be nested, although AnyDAC will not raise exception on consequent calls. After finishing updates call EndBatch.
procedure BeginBatch(AWithDelete: Boolean = False);
ADQuery1.BeginBatch; try ADQuery1.AppendRecord([...]); ADQuery1.AppendRecord([...]); ADQuery1.AppendRecord([...]); ...... finally ADQuery1.EndBatch; end;
|
What do you think about this topic? Send feedback!
|