ADO performance
From: Guillermo Ortega A. (gortega_at_dcf.pemex.com)
Date: 07/01/04
- Next message: Bob_M: "Re: ADOtable Excel"
- Previous message: Brian Bushay TeamB: "Re: "Field cannot be updated" error with ADODataSet"
- Next in thread: Arnie Mauer: "Re: ADO performance"
- Reply: Arnie Mauer: "Re: ADO performance"
- Reply: Andrew: "Re: ADO performance"
- Reply: Lluis Olle: "Re: ADO performance"
- Reply: Brian Wheatley: "Re: ADO performance"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 1 Jul 2004 12:24:34 -0500
Hi,
I've a persistence framework in wich I can swich from unsing ADO or
dbExpress or BDE but I have tested the performance against an oracle
database and ADO is 200 times slower (aprox) than dbExpress or BDE. For
testing I use 3 threads and the code is the same the only change is the ADO
connection object. For the queries in ADO i have set the properties as shown
Query.CursorType := ctOpenForwardOnly;
Query.LockType := ltReadOnly;
Query.DisableControls;
The persistence framework get the results in a query and after it assigns
the field Values (Query.Fields[index].Value) to the corresponding object
property what I mean is that I do someting like
While NOT Query.Eof do
begin
for i := 0 to Query.Fields.count - 1 do
begin
SetPropValue(myObject,PropertyName,Query.Fields[i].Value);
...
end;
...
end;
That code is the same for all processing the only different thing is that
Query can be TQuery, TADOQuery or TSQLQuery.
Does any one knows what else to watch in order to get a better performance
with ADO?
Thanks.
Guillermo
- Next message: Bob_M: "Re: ADOtable Excel"
- Previous message: Brian Bushay TeamB: "Re: "Field cannot be updated" error with ADODataSet"
- Next in thread: Arnie Mauer: "Re: ADO performance"
- Reply: Arnie Mauer: "Re: ADO performance"
- Reply: Andrew: "Re: ADO performance"
- Reply: Lluis Olle: "Re: ADO performance"
- Reply: Brian Wheatley: "Re: ADO performance"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|