Help Center/ AI DataLake/ Aura reference/ Performance Tuning/ SQL Tuning/ Configuring Optimizer Parameters
Updated on 2026-11-06 GMT+08:00

Configuring Optimizer Parameters

This section introduces key CN parameters that affect Aura performance tuning. For details about the parameter configuration method, see Viewing and Setting GUC Parameters.

Table 1 CN parameters

Parameter/Reference Value

Description

enable_nestloop=on

Controls whether the query optimizer uses the nested loop join type.

  • When set to on, the optimizer prefers to use nested loop join.
  • When set to off, the optimizer prefers other methods when they are available.
NOTE:

To temporarily change the value of this parameter in the current database connection (that is, the current session), run the following SQL statement:

1
SET enable_nestloop to off;

This parameter is set to off by default. However, in actual tuning, you should decide whether to disable it based on the specific situation. Generally, nested loop join has the poorest performance among the three JOIN methods (nested loop join, merge join, and hash join). You are advised to set this parameter to off.

enable_hashjoin=on

Specifies whether to enable the optimizer's use of Hash-join plan types.

rewrite_rule

Specifies whether the optimizer enables a specific rewriting rule.