PreFetchOnOpen Communication Parameter

Sends a prefetch request with a cursor open request, thereby eliminating a network request to fetch rows each time a cursor is opened.

Usage

ODBC

Values

YES, NO

Default

NO

Description

Columns must already be bound for the prefetch to occur on the open. Rebinding columns between the cursor open and the first fetch when using PreFetchOnOpen reduces performance.

Calling ODBC's SQLExecute or SQLExecDirect on a query or stored procedure which returns a result set causes a cursor open.

Enabling this option can improve performance if your:

  • Network exhibits poor latency

  • Application sends many cursor open and close requests