Show TOC

INDEX_ADVISOR_MAX_ROWS OptionLocate this document in the navigation structure

Sets the maximum number of unique advice messages stored by the index advisor to max_rows.

Allowed Values
Value Description
0 Minimum value disables collection of index advice
4294967295 Maximum value allowed
Default

0

Scope

Option can be set at the database (PUBLIC) or user level. At the database level, the value becomes the default for any new user, but has no impact on existing users. 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.

Remarks

INDEX_ADVISOR_MAX_ROWS limits the number of messages stored by the index advisor. Once the specified limit has been reached, the INDEX_ADVISOR will not store new advice. It will, however, continue to update counts and timestamps for existing advice messages.

SET OPTION public.Index_Advisor_Max_Rows = max_rows;