IBX.IBCustomDataSet.TIBCustomDataSet.FetchAll

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure FetchAll;

C++

void __fastcall FetchAll();

Properties

Type Visibility Source Unit Parent
procedure
function
public
IBX.IBCustomDataSet.pas
IBX.IBCustomDataSet.hpp
IBX.IBCustomDataSet TIBCustomDataSet

Description

Retrieves all records from the current cursor position to the end of the file and stores them locally.

Call FetchAll to reduce network traffic when using cached updates. FetchAll calls CheckBrowseMode to post any pending changes, and then retrieves all records from the current cursor position to the end of the file, and stores them locally. Ordinarily when cached updates are enabled, a transaction retrieves only as much data as it needs for return purposes.

Note: Using FetchAll is not always appropriate. For example, when an application accesses a database used by many simultaneous clients and there is a high degree of contention for updating the same records, fetching all records at once may not be advantageous because some fetched records may be changed by other applications. Always weigh the advantages of reduced network traffic against the need for reduced record contention.