Skip to main content
Skip table of contents

STORE_QUERY_PLANS

You are looking at an older version of the documentation. The latest version is found here.

This option controls whether query plans for each executed SQL query are stored in the query logs or not. It can take one of the following values:

ValueDescription

TRUE

  • Query plan is automatically generated at runtime for each executed SQL query and stored in the configuration database;
  • XML representation of the query plan for SQL query can be retrieved using the EXPLAIN command;
  • The SYSLOG.getQueryLogPlan procedure returns a stored query plan for a specific entry in the SYSLOG.QueryLogs table;
  • Default value

FALSE

  • Query plan is automatically generated at runtime for each executed SQL query, but not stored in the configuration database;
  • XML representation of the query plan for SQL query can be retrieved using the EXPLAIN command;
  • The SYSLOG.getQueryLogPlan procedure returns NULL for the queries executed after setting this value for the STORE_QUERY_PLANS option as there are no stored plans for them.

Example

SQL
CALL SYSADMIN.setDefaultOptionValue(' STORE_QUERY_PLANS', FALSE);;

STORE_QUERY_PLANS option is available since v2.4.16

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.