Contents Index Cursor sensitivity and performance Cursor sensitivity and isolation levels

ASA Programming Guide
  Using SQL in Applications
    Adaptive Server Anywhere cursors
      Cursor sensitivity and performance

Prefetching rows

Prefetches and multiple-row fetches are different. Prefetches can be carried out without explicit instructions from the client application. Prefetching retrieves rows from the server into a buffer on the client side, but does not make those rows available to the client application until the application fetches the appropriate row.

By default, the Adaptive Server Anywhere client library prefetches multiple rows whenever an application fetches a single row. The Adaptive Server Anywhere client library stores the additional rows in a buffer.

Prefetching assists performance by cutting down on client/server traffic, and increases throughput by making many rows available without a separate request to the server for each row or block of rows.

For more information on controlling prefetches, see PREFETCH option [database].

Controlling prefetching from an application 

Contents Index Cursor sensitivity and performance Cursor sensitivity and isolation levels