Additional
dbCAP
AnyDAC
ThinDAC
NCOCI8
Topic: Speed compared to BDE
Speed compared to BDE
Posted: 2005/08/03 15:00
 
Hello Dmitry

I did some Speed comparism between BDE and Anydac on MSSQL

Its a simple Table with some FK relations, nothing special. Task is to insert in total about 26044 records out of memory

The Data is inserted in 3 loops, the technic is far from optimum but that's like it is.

A request life TQuery with a select * from EntityName where 0=1. The Query is prepared and the data is inserted with insert and post

for j:= 0 to FVerrechnungsTag.Betrieb[i].ArtikelCount -1 do
begin
try
qryBDETarget.Insert;
qryBDETargetID_DATUM.AsInteger:= FVerrechnungsTag.ID_Datum;
qryBDETargetID_BETRIEB.AsInteger:= FVerrechnungsTag.Betrieb[i].ID_Betrieb;
qryBDETargetID_ARTIKEL.Text:= FVerrechnungsTag.Betrieb[i].Artikel[j].ID_Artikel;
qryBDETargetBESTAND.AsInteger:=FVerrechnungsTag.Betrieb[i].Artikel[j].Bestand;
qryBDETarget.Post;

With BDE, I got this result

4448 Records written in 2859ms
8580 Records written in 5437ms
13016 Records written in 8187ms

After replacing the TQuery with a TADQuery I got these results.

4448 Records written in 8656ms
8580 Records written in 16750ms
13016 Records written in 25719ms

So what are the options I have to set to get more/full speed?
RE: Speed compared to BDE
Posted: 2005/08/03 16:57
 
Hello Dirk !

Try following:

1) Call:
qryBDETarget.BeginBatch;
try
....
finally
qryBDETarget.EndBatch;
end;
2) Replace qryBDETarget.Insert with qryBDETarget.Append;
3) Check that monitoring is turned off for connection.

Regards,
Dmitry
RE: Speed compared to BDE
Posted: 2005/08/04 13:15
 
Thanks Dmitry

with this settings I get similar results like BDE, I think this is the limit on my slow server here.

When I got (soon) a new one I will do more speed testing.

I will have a look now on the extended features of anydac.

regards Dirk