PrefetchBuffer connection parameter [PBUF]

Function

Set the maximum amount of memory for buffering rows, in kilobytes.

Usage

Anywhere

Values

Integer

Default

64 (KB)

See also

“PrefetchRows connection parameter [PROWS]”

Description

The PrefetchBuffer connection parameter controls the memory allocated on the client to store prefetched rows. In some circumstances, increasing the number of rows prefetched from the database server by the client can improve query performance. You can increase the number of rows prefetched using the PrefetchRows and PrefetchBuffer connection parameters.

Increasing the PrefetchBuffer (PBUF) connection parameter increases the amount of memory used to buffer GET DATA requests. This may improve performance for some applications that process many GET DATA (SQLGetData) requests.

Example

The following connection string fragment could be used to determine if the PrefetchBuffer memory limit is reducing the number of rows prefetched:

 ...prefetchrows=100;logfile=c:\ client.txt

The following string could be used to increase the memory limit to 256K:

...prefetchrows=100;prefetchbuffer=256