 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Vincent Choy Guest
|
Posted: Fri Aug 06, 2004 2:15 am Post subject: Refresh very slow!! |
|
|
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
|
Posted: Fri Aug 06, 2004 4:57 pm Post subject: Re: Refresh very slow!! |
|
|
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
|
Posted: Sun Aug 22, 2004 10:41 am Post subject: Re: Refresh very slow!! |
|
|
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 |
|
 |
|
|
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
|
|