 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Xie Bingpeng Guest
|
Posted: Mon Dec 08, 2003 9:40 am Post subject: Performance about Access VS Paradox |
|
|
hi all:
I use Delphi7, Access2000 for test.
Now I want copy records from a query to Access.I compare the Performance
of TADOTable and TTable, I found TADOTable is much slow than paradox. the
code is like this:
Query.First;
while not Query.eof do
begin
ADOTable1.Append;
ADOTable1.Fields[0].Value:=Query.Fields[0].Value;
ADOTable1.Post;
Query.Next;
end;
if using Paradox, code like this:
Query.First;
while not Query.eof do
begin
Table1.Append;
Table1.Fields[0].Value:=Query.Fields[0].Value;
Table1.Post;
Query.Next;
end;
for large data, I found TADOTable is about 3 times slow than TTable.
How to impove TADOTable's speed? Is there any other component compatible
with
TADOTable and has high Performance? I heard something like DirectAccess,But
it is
used the way as BDE,but I need ADO component property.
Any suggest ?
thanks.
|
|
| Back to top |
|
 |
Viatcheslav V. Vassiliev Guest
|
Posted: Mon Dec 08, 2003 11:23 am Post subject: Re: Performance about Access VS Paradox |
|
|
For Access for batch operations use CursorLocation=clUseServer. For ADO
table, use also TableDirect=true.
//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi + ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)
"Xie Bingpeng" <xbp (AT) teabird (DOT) com.cn> сообщил/сообщила в новостях следующее:
news:3fd4469e (AT) newsgroups (DOT) borland.com...
| Quote: | hi all:
I use Delphi7, Access2000 for test.
Now I want copy records from a query to Access.I compare the Performance
of TADOTable and TTable, I found TADOTable is much slow than paradox. the
code is like this:
Query.First;
while not Query.eof do
begin
ADOTable1.Append;
ADOTable1.Fields[0].Value:=Query.Fields[0].Value;
ADOTable1.Post;
Query.Next;
end;
if using Paradox, code like this:
Query.First;
while not Query.eof do
begin
Table1.Append;
Table1.Fields[0].Value:=Query.Fields[0].Value;
Table1.Post;
Query.Next;
end;
for large data, I found TADOTable is about 3 times slow than TTable.
How to impove TADOTable's speed? Is there any other component compatible
with
TADOTable and has high Performance? I heard something like
DirectAccess,But
it is
used the way as BDE,but I need ADO component property.
Any suggest ?
thanks.
|
|
|
| Back to top |
|
 |
Mike Collier Guest
|
Posted: Tue Dec 09, 2003 4:37 am Post subject: Re: Performance about Access VS Paradox |
|
|
| Quote: | For Access for batch operations use CursorLocation=clUseServer. For ADO
table, use also TableDirect=true.
|
I agree with Vassiliev.
You could also try looking for other OLEDB providers. I don't know if you
are using the ODBC/ADO bridge provider or JET. They may give different
results.
--
Mike Collier BSc (Hons)
ADO Browser for viewing ADO properties & events on your system.
http://www.adoanywhere.com
https://www.regsoft.net/regsoft/vieworderpage.php3?productid=64520
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|