skip to main content
Connection property descriptions : WSFetchSize
  

Try DataDirect Drivers Now

WSFetchSize

Purpose

Specifies the number of rows of data the driver attempts to fetch for each JDBC call when paging is enabled for an endpoint.
Note: To enable paging, specifying paging parameters for an endpoint in the input REST file. See "Creating an input REST file" for details.

Valid Values

0 | x
where:
x
is a positive integer that defines a number of rows. The maximum is defined by the setting of the maximumPageSize property in the input REST file.

Behavior

If set to 0, the driver attempts to fetch up to the maximum number of row specified by the maximumPageSize property. This value typically provides the maximum throughput.
If set to x, the driver attempts to fetch up to the maximum of the specified number of rows. Setting the value lower than the maximum can reduce the response time for returning the initial data. Consider using a smaller WSFetch size for interactive applications only.

Notes

WSFetchSize and FetchSize can be used to adjust the trade-off between throughput and response time. Smaller fetch sizes can improve the initial response time of the query. Larger fetch sizes can improve overall response times at the cost of additional memory.

Data Source Method

setWSFetchSize

Default

0 (up to the maximum number of rows specified by the maximumPageSize property)

Data Type

Int

See Also

*Creating an input REST file
*Web service properties
*Performance considerations