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 

Refresh very slow!!

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





PostPosted: Fri Aug 06, 2004 2:15 am    Post subject: Refresh very slow!! Reply with quote



Hi all,

procedure TMember.Adodataset1AfterPost(DataSet: TDataSet);
begin
Adodataset1.Refresh;
end;

I try to add Adodataset1.Refresh at the procedure afterpost in order to
refresh the current record. However, the performance of this procedure is
very very slow. it may take up to 2 mintues if there are thousand of
records.
So, i want to know it there any method to refresh the current record
without using refresh procedure and how can i make it run faster?

Thanks


Back to top
Vincent Choy
Guest





PostPosted: Fri Aug 06, 2004 4:57 pm    Post subject: Re: Refresh very slow!! Reply with quote



thx
"Vincent Choy" <vincent (AT) exodus-tech (DOT) com> wrote

Quote:
Hi all,

procedure TMember.Adodataset1AfterPost(DataSet: TDataSet);
begin
Adodataset1.Refresh;
end;

I try to add Adodataset1.Refresh at the procedure afterpost in order to
refresh the current record. However, the performance of this procedure is
very very slow. it may take up to 2 mintues if there are thousand of
records.
So, i want to know it there any method to refresh the current record
without using refresh procedure and how can i make it run faster?

Thanks





Back to top
Cameron Mathers
Guest





PostPosted: Sun Aug 22, 2004 10:41 am    Post subject: Re: Refresh very slow!! Reply with quote



What is the easiest way to replace the standard TAction that performs a
Refresh (TDataSetRefresh) with a call to Resync instead of Refresh?

Regards

Cameron Mathers

"Brian Bushay TeamB" <BBushay (AT) Nmpls (DOT) com> wrote

Quote:

Adodataset1.Refresh;
end;

I try to add Adodataset1.Refresh at the procedure afterpost in order to
refresh the current record. However, the performance of this procedure is
very very slow. it may take up to 2 mintues if there are thousand of
records.
So, i want to know it there any method to refresh the current record

You can refresh just the current record with.

Adodataset1.RecordSet.Resync(adAffectCurrent, adResyncAllValues);

Add ADOINT to your uses for the adAffectCurrent, adResyncAllValues
constants
--
Brian Bushay (TeamB)
[email]Bbushay (AT) NMPLS (DOT) com[/email]



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.