BT_PREFETCH_MAX_MISS Option

Controls the way SAP Sybase IQ determines whether to continue prefetching B-tree pages for a given query.

Allowed Values

0 – 1000

Default

2

Scope

Option can be set at the database (PUBLIC) or user level. When set at the database level, the value becomes the default for any new user, but has no impact on existing users. When set at the user level, overrides the PUBLIC value for that user only. No system privilege is required to set option for self. System privilege is required to set at database level or at user level for any user other than self.

Requires the SET ANY PUBLIC OPTION system privilege to set this option. Can be set temporary for an individual connection or for the PUBLIC role. Takes effect immediately.

Description

Use only if instructed to do so by SAP Sybase Technical Support. For queries that use HG (High_Group) indexes, SAP Sybase IQ prefetches B-tree pages sequentially until it determines that prefetching is no longer useful. For some queries, it might turn off prefetching prematurely. Increasing the value of BT_PREFETCH_MAX_MISS makes it more likely that SAP Sybase IQ continues prefetching, but also might increase I/O unnecessarily.

If queries using HG indexes run more slowly than expected, try gradually increasing the value of BT_PREFETCH_MAX_MISS.

Experiment with different settings to find the setting that gives the best performance. For most queries, useful settings are in the range of 1 to 10.

Related reference
BT_PREFETCH_SIZE Option
PREFETCH_BUFFER_LIMIT Option