i test "Refresh" and "RefreshQuick(true)" functions with a sampleProject that has 100000 record.
my code is:
Code: Select all
var t:TTime;
i:Int64;
begin
t:=Time;
MSQuery1.RefreshQuick(True);
//MSQuery1.Refresh;
i:=MilliSecondsBetween(Time,t);
Label1.Caption:=IntToStr(i)
end;
When Use "Refresh" function , The Time Of Refresh is 700ms.
When Use "RefreshQuick(True)" function and no record is Deleted with other client , The Time Of Refresh is 30ms.
but When Use "RefreshQuick(True)" function and a record was Deleted with other client , The Time Of Refresh is 3100ms.
why?(3100ms is the long time in comparison with 700ms and 30ms)
best regard.