These configuration parameters provide a crude method of influencing the query plans chosen by the query optimizer. If the default plan chosen by the optimizer for a particular query is not optimal, a temporary solution is to use one of these configuration parameters to force the optimizer to choose a different plan. Better ways include adjusting the optimizer cost constants, manually running ANALYZE, increasing the value of the default_statistics_target configuration parameter, and adding the statistics collected in a specific column using ALTER TABLE SET STATISTICS.
Parameter description: Controls whether the query optimizer uses the bitmap-scan plan type.
Type: USERSET
Value range: Boolean
Default value: on
Parameter description: Controls whether the query optimizer uses the Hash aggregation plan type.
Type: USERSET
Value range: Boolean
Default value: on
Parameter description: Controls whether the query optimizer uses the Mixed Agg plan type.
Type: USERSET
Value range: Boolean
Default value: on
Mixed Agg is not supported in the following scenarios:
Parameter description: Controls whether the query optimizer uses the Hash-join plan type.
Type: USERSET
Value range: Boolean
Default value: on
Parameter description: Controls whether the query optimizer uses the index-scan plan type.
Type: USERSET
Value range: Boolean
Default value: on
Parameter description: Controls whether the query optimizer uses the index-only-scan plan type.
Type: USERSET
Value range: Boolean
Default value: on
Parameter description: Controls whether the query optimizer uses materialization. It is impossible to suppress materialization entirely, but setting this parameter to off prevents the optimizer from inserting materialized nodes.
Type: USERSET
Value range: Boolean
Default value: on
Parameter description: Controls whether the query optimizer uses the merge-join plan type.
Type: USERSET
Value range: Boolean
Default value: off
Parameter description: Controls whether the query optimizer uses the nested-loop join plan type to fully scan internal tables. It is impossible to suppress nested-loop joins entirely, but setting this parameter to off allows the optimizer to choose other methods if available.
Type: USERSET
Value range: Boolean
Default value: off
Parameter description: Controls whether the query optimizer uses the nested-loop join plan type to scan the parameterized indexes of internal tables.
Type: USERSET
Value range: Boolean
Default value: The default value for a newly installed cluster is on. If the cluster is upgraded from R8C10, the forward compatibility is retained. If the version is upgraded from R7C10 or an earlier version, the default value is off.
Parameter description: Specifies whether to use the optimized estimated number of rows for left join. This parameter is supported only by clusters of version 8.3.0.100 or later.
Type: USERSET
Value range: Boolean
Default value: off
Parameter description: Controls whether the query optimizer uses the sequential scan plan type. It is impossible to suppress sequential scans entirely, but setting this variable to off allows the optimizer to preferentially choose other methods if available.
Type: USERSET
Value range: Boolean
Default value: on
Parameter description: Controls whether the query optimizer uses the sort method. It is impossible to suppress explicit sorts entirely, but setting this variable to off allows the optimizer to preferentially choose other methods if available.
Type: USERSET
Value range: Boolean
Default value: on
Parameter description: Specifies the maximum number of optimized limit+offset rows in an ORDER BY clause. This parameter is supported only by clusters of version 8.3.0 or later.
Type: USERSET
Value range: an integer ranging from 0 to INT_MAX
Default value: 0
Parameter description: Controls whether the query optimizer uses the Tuple ID (TID) scan plan type.
Type: USERSET
Value range: Boolean
Default value: on
Parameter description: In CASCADE mode, when a user is deleted, all the objects belonging to the user are deleted. This parameter specifies whether the queries of the objects belonging to the user can be unlocked when the user is deleted.
Type: SUSET
Value range: Boolean
Default value: off
Parameter description: Controls the rule matching modes of regular expressions.
Type: USERSET
Value range: Boolean
Default value: on
Parameter description: Controls the use of stream in concurrent updates. This parameter is restricted by the enable_stream_operator parameter.
Type: USERSET
Value range: Boolean
Default value: on
Parameter description: Specifies whether a stream plan supports ctescan.
Type: USERSET
Value range: Boolean
Default value: off
Parameter description: Controls whether the query optimizer uses streams.
Type: USERSET
Value range: Boolean
Default value: on
Parameter description: Specifies whether to push WITH RECURSIVE join queries to DNs for processing.
Type: USERSET
Value range: Boolean
Default value: on
Parameter description: Specifies whether to generate value redistribute plans. In 8.2.0 and later cluster versions, this parameter takes effect for rank, dense_rank, and row_number without the PARTITION BY clause.
Type: USERSET
Value range: Boolean
Default value: on
Parameter description: Specifies the maximum number of WITH RECURSIVE iterations.
Type: USERSET
Value range: an integer ranging from 0 to INT_MAX
Default value: 200
Parameter description: Controls whether the query optimizer uses the vectorized executor.
Type: USERSET
Value range: Boolean
Default value: on
Parameter description: Controls whether the query optimizer uses the broadcast distribution method when it evaluates the cost of stream.
Type: USERSET
Value range: Boolean
Default value: on
Parameter description: Controls whether the query optimizer uses the local redistribute or split redistribute distribution method when estimating the cost of streams. This parameter is supported only by clusters of version 8.3.0 or later.
Type: USERSET
Value range: Boolean
Default value: on
Parameter description: Specifies whether the optimizer excludes internal table running costs when selecting the Hash Join cost path. If it is set to on, tables with a few records and high running costs are more possible to be selected.
Type: USERSET
Value range: Boolean
Default value: off
Parameter description: Controls whether the query optimizer uses streams when it delivers statements. This parameter is only used for external HDFS tables.
This parameter has been discarded. To reserve forward compatibility, set this parameter to on, but the setting does not make a difference.
Type: USERSET
Value range: Boolean
Default value: off
Parameter description: Controls whether hashfilters can be generated for plans that contain replication tables (including dual and constant tables). This parameter is supported by clusters of version 8.2.0 or later.
Type: USERSET
Value range: Boolean
Default value: on
This parameter is used to control the query optimizer to generate which type of hashagg plans.
Type: USERSET
Value range: an integer ranging from 0 to 3.
Default value: 0
Parameter description: For tables with the turbo storage format specified during table creation (by setting the enable_turbo_store parameter to on in the table properties), and when the query does not involve merge join or sort agg operators, the executor can use the turbo execution engine, which can significantly improve performance.
Type: USERSET
Value range: an integer ranging from 0 to 3.
Default value: 0
You are advised not to enable the turbo execution engine in cross-VW scenarios.
Parameter description: Specifies whether to use the bucket agg and bucket join policies for level-2 partitioned tables or 3.0 hash distributed tables. It speeds up SQL statement execution by avoiding local data redistribution or broadcast. This is supported only by clusters of version 9.1.0.200 or later.
Type: USERSET
Value range: Boolean
Default value: true
1. The distribution column for level-2 partitions must match the secondary_part_column of these partitions. It is recommended that the number of level-2 partitions be the number of DNs multiplied by 12. Supported multiples include 4, 6, 8, 12, and 16.
2. Tables in version 3.0 must use hash distribution, with the number of buckets or DNs exceeding 10.
Parameter description: Specifies the compression algorithm used when the executor operator runs out of memory and needs to spill data to disk. This is supported only by clusters of version 9.1.0.100 or later.
Type: USERSET
Value range: enumerated values
Default value: 'lz4'
Parameter description: Controls the cost calculation of cbtree when scanning column-store table indexes (for selectivity > 0.001). This parameter is only supported by clusters of version 8.2.1.100 or later.
Type: USERSET
Value range: a floating point number, which can be –1 or ranges from 0 to 1000.
Default value: –1
Parameter description: threshold for disabling the cost calculation of cbtree during column-store table index scanning. This parameter is supported only by clusters of version 8.2.1.100 or later.
Type: USERSET
Value range: an integer ranging from 0 to 2147483647
Default value: 0
Parameter description: Controls the execution scope of volatile functions to be pushed down.
Type: USERSET
Value range: 0, 1, 2, 3
Default value: 3
Parameter description: When the aggregate operation is performed, which contains multiple group by columns and all of the columns are not in the distribution column, you need to select one group by column for redistribution. This parameter controls the policy of selecting a redistribution column.
Type: USERSET
Value range: Boolean
Default value: off
Parameter description: Specifies whether the DFS partitioned table is dynamically or statically optimized.
Type: USERSET
Value range: Boolean
Default value: on
Parameter description: Specifies a computing Node Group or the way to choose such a group. The Node Group mechanism is now for internal use only. You do not need to set it.
During join or aggregation operations, a Node Group can be selected in four modes. In each mode, the specified candidate computing Node Groups are listed for the optimizer to select an appropriate one for the current operator.
Type: USERSET
Value range: a string
Default value: bind
Parameter description: Specifies whether the optimizer assigns computing workloads to a specific Node Group when multiple Node Groups exist in an environment. The Node Group mechanism is now for internal use only. You do not need to set it.
This parameter takes effect only when expected_computing_nodegroup is set to a specific Node Group.
Type: USERSET
Value range: Boolean
Default value: off
Parameter description: Specifies the weight used for optimizer to calculate the final cost of stream operators.
The base stream cost is multiplied by this weight to make the final cost.
Type: USERSET
Value range: a floating point number ranging from 0 to 10000
Default value: 1
This parameter is applicable only to Redistribute and Broadcast streams.
Parameter description: Specifies whether enable inlist-to-join (inlist2join) query rewriting.
Type: USERSET
Value range: a string
Default value: disable
Parameter description: Specifies whether to use inlist hash optimization. This parameter is supported only by clusters of version 9.1.0 or later.
Type: USERSET
Value range: Boolean
Default value: on
Parameter description: Specifies whether to perform deduplication on the query branch statements of a set operation (UNION/EXCEPT/INTERSECT) without the ALL option.
Type: USERSET
Value range: enumerated values
Default value: cost
Parameter description: Specifies whether an optimization policy is used
Type: USERSET
Value range: a string
Default value: normal
Parameter description: Specifies whether to use expression statistics in the skew optimization policy. This is supported only by clusters of version 9.1.0.100 or later.
Type: USERSET
Value range: Boolean
Default value: on
Parameter description: whether to preferentially generate hashjoin paths so that other paths with high costs can be pre-pruned to shorten the overall plan generation time. This parameter is supported only by clusters of version 8.2.1 or later.
Type: USERSET
Value range: Boolean
Default value: on
Parameter description: whether to add hash filters to columns for base table scan to check whether the results meet expectations. In addition, this parameter determines whether to check the DN accuracy when data is inserted (that is, whether the current data should be inserted into the current DN).
Type: USERSET
Value range: Boolean
Default value: on
Parameter description: Specifies whether to set the CUs in V3 tables to 8 KB. This parameter is supported only by clusters of version 9.1.0 or later.
Type: USERSET
Value range: Boolean
Default value: off
Parameter description: Specifies whether to enable the multi-column CU batch write feature for V2 tables. This parameter is supported only by clusters of version 9.1.0 or later.
Type: USERSET
Value range: Boolean
Default value: off
Parameter description: Specifies whether to enable Top K sorting optimization. This is supported only by clusters of version 9.1.0.200 or later.
Type: USERSET
Value range: Boolean
Default value: on
Parameter description: Specifies whether to use the late materialization feature. This is supported only by clusters of version 9.1.0.200 or later.
Type: USERSET
Value range: enumerated values
Default value: topk