BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TADO performance

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO)
View previous topic :: View next topic  
Author Message
Coville Philippe
Guest





PostPosted: Thu Dec 18, 2003 8:15 pm    Post subject: TADO performance Reply with quote



I ma doing a complexe update row by row on a large table with 20 000
records. I am using an TADOTable object connected to an Access 2000
database.

The update is 5 times slower than with TTable on Paradow files. What can I
do to improve the performance.

Thanks for your help

P. Coville
France


Back to top
Coville Philippe
Guest





PostPosted: Sun Dec 21, 2003 11:26 pm    Post subject: Re: TADO performance Reply with quote



I have done what you told me but I haven't seen any improvment.

Any other idea?

Thanks for your help

"Brian Bushay TeamB" <BBushay (AT) Nmpls (DOT) com> a écrit dans le message de news:
[email]j6q4uvkdpaochtrhl3umbgfgplqo91tuj3 (AT) 4ax (DOT) com[/email]...
Quote:

I ma doing a complexe update row by row on a large table with 20 000
records. I am using an TADOTable object connected to an Access 2000
database.

The update is 5 times slower than with TTable on Paradow files. What can
I
do to improve the performance.

Set TableDirect to true.
DisableControls

Lastly remember there are problems associated with using Paradox tables
but slow
performance isn't one of them
--
Brian Bushay (TeamB)
[email]Bbushay (AT) NMPLS (DOT) com[/email]



Back to top
Emmanuel Guillot
Guest





PostPosted: Fri Dec 26, 2003 12:52 pm    Post subject: Re: TADO performance Reply with quote



bonjour regarde ce code tu devrais ameliorer les performances.

var
rs : _Recordset;
begin
rs := AdoInt.CoRecordset.Create;
rs.CursorLocation := adUseClient;
rs.CursorType := adOpenForwardOnly;
rs.LockType := adLockReadOnly;
Q1.CommandText := 'select champ from matable';
rs := Q1.Execute;
rs.MoveFirst;
while not rs.EOF do
begin
// Do Something
rs.MoveNext;
end;
rs := nil;
end;

Emmanuel.


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.