My code :
cds.close;
cds.commandtext := 'select * from a';
cds.open;
cds.first;
counter := 0;
while not cds.eof do
begin
inc(counter);
cds.edit;
cds.fieldbyname('counter').Asinteger := counter;
cds.post;
cds.next;
end;
if cds.ChangeCount > 0 then
cds.ApplyUpdates(0);
My problem :
CDS = TClientDataSet. Table A have 66410 records to update. The ApplyUpdates takes very long. I stopped my application after 12 min. Any way to speed this process up or are there another method to do this ?
I am using D7 and DbExpress.
thanks
Karen
cds.close;
cds.commandtext := 'select * from a';
cds.open;
cds.first;
counter := 0;
while not cds.eof do
begin
inc(counter);
cds.edit;
cds.fieldbyname('counter').Asinteger := counter;
cds.post;
cds.next;
end;
if cds.ChangeCount > 0 then
cds.ApplyUpdates(0);
My problem :
CDS = TClientDataSet. Table A have 66410 records to update. The ApplyUpdates takes very long. I stopped my application after 12 min. Any way to speed this process up or are there another method to do this ?
I am using D7 and DbExpress.
thanks
Karen