MyDAC

TCustomMyDataSet.RefreshQuick Method

Retrieves changes posted to the server by another clients on the client side quickly.

Class

TCustomMyDataSet

Syntax

procedure RefreshQuick(const CheckDeleted: boolean);

Parameters
CheckDeleted
True, if records deleted by another clients will be checked additionally.

Remarks

Call the RefreshQuick method to retrieve changes posted to the server by another clients on the client side quickly. The main difference from the Refresh method is that not all data corresponding to the query is retrieved on the client, but only the rows which were added or modified at the moment of the last update. A necessity of data inquiry for each row is defined by TIMESTAMP field.

If CheckDeleted parameter set to True records deleted by another clients will be checked additionally.

For RefreshQuick to work it is necessary that a query includes unique key fields and TIMESTAMP field.

This method is especially effective for queries with huge data level in the single row.

Note: If RefreshQuick is called for a dataset which is ordered on the server (query includes the ORDER BY clause), dataset records ordering can be violated because not all records will be retrieved by this method. You can use local ordering to solve this problem. For more information about local ordering, see the TMemDataSet.IndexFieldNames property description.

© 1997-2024 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback