HARETRIEVENUMROW

Sets the maximum number of rows resulting from an SQL query to process at one time.

Syntax

HARETRIEVENUMROW [appname [dbname]] n

Description

This setting sets the number of rows to process at a time. A low value may degrade performance and increase query time, but reduce memory usage.

Notes

An important distinction exists between the purposes of HARETRIEVENUMROW and HAMAXQUERYROWS. Whereas HARETRIEVENUMROW affects memory consumption by controlling how many rows to process at one time, HAMAXQUERYROWS controls the number of total rows to return.

HARETRIEVENUMROW and HAMAXQUERYROWS should not be confused with QRYGOVEXECBLK which sets the maximum number of blocks that a query can access before the query is terminated.

Example

In the following example, an Essbase query processes rows from each SQL query in sets of 50 rows.

HARETRIEVENUMROW 50

See Also

HAMAXNUMSQLQUERY

HAMAXQUERYROWS