forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
302 lines
91 KiB
HTML
302 lines
91 KiB
HTML
<a name="EN-US_TOPIC_0000001460562696"></a><a name="EN-US_TOPIC_0000001460562696"></a>
|
||
|
||
<h1 class="topictitle1">Other Optimizer Options</h1>
|
||
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001460562696__sa5c1527051e54fbdb6c5346d54bcbf5a"><a name="EN-US_TOPIC_0000001460562696__sa5c1527051e54fbdb6c5346d54bcbf5a"></a><a name="sa5c1527051e54fbdb6c5346d54bcbf5a"></a><h4 class="sectiontitle">default_statistics_target</h4><p id="EN-US_TOPIC_0000001460562696__a6142f4f84779437398877f851e1cd4c5"><strong id="EN-US_TOPIC_0000001460562696__b879637478">Parameter description</strong>: Specifies the default statistics target for table columns without a column-specific target set via <strong id="EN-US_TOPIC_0000001460562696__b12796187877">ALTER TABLE SET STATISTICS</strong>. If this parameter is set to a positive number, it indicates the number of samples of statistics information. If this parameter is set to a negative number, percentage is used to set the statistic target. The negative number converts to its corresponding percentage, for example, -5 means 5%. During sampling, the random sampling size is <strong id="EN-US_TOPIC_0000001460562696__b051813815214">default_statistics_target</strong> x 300. For example, if the <strong id="EN-US_TOPIC_0000001460562696__b1351853816525">default_statistics_target</strong> is 100, 30,000 data records from 30,000 pages are randomly sampled.</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p645142575219"><strong id="EN-US_TOPIC_0000001460562696__b467315138472">Type</strong>: USERSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__ac9c43d0403b6465ba8ee1d80e4149dfc"><strong id="EN-US_TOPIC_0000001460562696__b143251241135211">Value range</strong>: an integer ranging from -100 to 10,000</p>
|
||
<div class="notice" id="EN-US_TOPIC_0000001460562696__n4ba410b0a05f4177a50d0fff301cc063"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><ul id="EN-US_TOPIC_0000001460562696__ul1557835716292"><li id="EN-US_TOPIC_0000001460562696__li1578165717294">A larger positive number than the parameter value increases the time required to do <strong id="EN-US_TOPIC_0000001460562696__b2004277218120">ANALYZE</strong>, but might improve the quality of the optimizer's estimates.</li><li id="EN-US_TOPIC_0000001460562696__li1351163511438">Changing settings of this parameter may result in performance deterioration. If query performance deteriorates, you can:<ol id="EN-US_TOPIC_0000001460562696__ol41884344312"><li id="EN-US_TOPIC_0000001460562696__li239210464434">Restore to the default statistics.</li><li id="EN-US_TOPIC_0000001460562696__li218164317437">Use hints to optimize the query plan. </li></ol>
|
||
</li><li id="EN-US_TOPIC_0000001460562696__li17578115712299">If this parameter is set to a negative value, the number of samples is greater than or equal to 2% of the total data volume, and the number of records in user tables is less than 1.6 million, the time taken by running <strong id="EN-US_TOPIC_0000001460562696__b737314417522">ANALYZE</strong> will be longer than when this parameter uses its default value.</li><li id="EN-US_TOPIC_0000001460562696__li125788577293"><strong id="EN-US_TOPIC_0000001460562696__b211003710218">AUTOANALYZE</strong> does not allow you to set a sampling size for temporary table sampling. Its default value will be used for sampling.</li><li id="EN-US_TOPIC_0000001460562696__li1281061016253">If statistics are forcibly calculated based on memory, the sampling size is limited by the <strong id="EN-US_TOPIC_0000001460562696__b05164552613">maintenance_work_mem</strong> parameter.</li></ul>
|
||
</div></div>
|
||
<p id="EN-US_TOPIC_0000001460562696__a30a5b12b50564c7db52405ae65494ec9"><strong id="EN-US_TOPIC_0000001460562696__b1931793817131_1">Default value</strong>: <strong id="EN-US_TOPIC_0000001460562696__b842352706141243">100</strong></p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001460562696__section14172125212180"><h4 class="sectiontitle">random_function_version</h4><p id="EN-US_TOPIC_0000001460562696__p10172327201919"><strong id="EN-US_TOPIC_0000001460562696__b20903188111210">Parameter description</strong>: Specifies the random function version selected by ANALYZE during data sampling. This feature is supported only in 8.1.2 or later.</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p417211270192"><strong id="EN-US_TOPIC_0000001460562696__b538914260123">Type</strong>: USERSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p14172112711191"><strong id="EN-US_TOPIC_0000001460562696__b1612942810127">Value range</strong>: enumerated values</p>
|
||
<ul id="EN-US_TOPIC_0000001460562696__ul16631315213"><li id="EN-US_TOPIC_0000001460562696__li139213313213">The value <strong id="EN-US_TOPIC_0000001460562696__b033704019125">0</strong> indicates that the random function provided by the C standard library is used.</li><li id="EN-US_TOPIC_0000001460562696__li3922034213">The value <strong id="EN-US_TOPIC_0000001460562696__b13536641131318">1</strong> indicates that the optimized and enhanced random function is used.</li></ul>
|
||
<p id="EN-US_TOPIC_0000001460562696__p8442164714538">Default value:</p>
|
||
<ul id="EN-US_TOPIC_0000001460562696__ul13741111955415"><li id="EN-US_TOPIC_0000001460562696__li6742131975418">If the current cluster is upgraded from an earlier version to 8.2.0.100, the default value is <strong id="EN-US_TOPIC_0000001460562696__b2895244175220">0</strong> to ensure forward compatibility.</li><li id="EN-US_TOPIC_0000001460562696__li9742131975413">If the cluster version 8.2.0.100 is newly installed, the default value is <strong id="EN-US_TOPIC_0000001460562696__b194738917535">1</strong>.</li></ul>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001460562696__s5302d9fd9234498da55183c9914b189f"><h4 class="sectiontitle">constraint_exclusion</h4><p id="EN-US_TOPIC_0000001460562696__ac32dbb8fd70d46faa9b0d5de549981ef"><strong id="EN-US_TOPIC_0000001460562696__b27407937">Parameter description</strong>: Controls the query optimizer's use of table constraints to optimize queries.</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p184644341457"><strong id="EN-US_TOPIC_0000001460562696__b142301814194716">Type</strong>: USERSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__a566e9efafe694be09ea487d0dc346398"><strong id="EN-US_TOPIC_0000001460562696__en-us_topic_0059779049_en-us_topic_0058967719_b12936872">Value range</strong>: enumerated values</p>
|
||
<ul id="EN-US_TOPIC_0000001460562696__u8ec889c760534ae6b26ca97432c7fb6d"><li id="EN-US_TOPIC_0000001460562696__lf97f70c521cc4428a2dd1bdaf16189a6"><strong id="EN-US_TOPIC_0000001460562696__b881520714718">on</strong> indicates the constraints for all tables are examined.</li><li id="EN-US_TOPIC_0000001460562696__l3832f4411cf0448eba491d72ab554090"><strong id="EN-US_TOPIC_0000001460562696__b19816177675">off</strong>: No constraints are examined.</li><li id="EN-US_TOPIC_0000001460562696__l2b71a3371be94d339c47cc55895d0262"><strong id="EN-US_TOPIC_0000001460562696__b1481827671">partition</strong> indicates that only constraints for inherited child tables and <strong id="EN-US_TOPIC_0000001460562696__b18184711716">UNION ALL</strong> subqueries are examined.<div class="notice" id="EN-US_TOPIC_0000001460562696__nc077356e66d9488ea5d9adbf6d584878"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="EN-US_TOPIC_0000001460562696__a34d1a52788ab42d89a8136a5a3da3965">When <strong id="EN-US_TOPIC_0000001460562696__b1687220718120">constraint_exclusion</strong> is set to <strong id="EN-US_TOPIC_0000001460562696__b1763213718120">on</strong>, the optimizer compares query conditions with the table's <strong id="EN-US_TOPIC_0000001460562696__b2447150918120">CHECK</strong> constraints, and omits scanning tables for which the conditions contradict the constraints.</p>
|
||
</div></div>
|
||
</li></ul>
|
||
<p id="EN-US_TOPIC_0000001460562696__a8efecdefd91b48ba915cf83f2dffcdd6"><strong id="EN-US_TOPIC_0000001460562696__b1931793817131_3">Default value</strong>: <strong id="EN-US_TOPIC_0000001460562696__b84235270617521">partition</strong></p>
|
||
<div class="note" id="EN-US_TOPIC_0000001460562696__n21646fe65b8d45b4a28529fd58babd2c"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001460562696__ac4c5f2488bca423ea0a5d34aa447d658">Currently, this parameter is set to <strong id="EN-US_TOPIC_0000001460562696__b11269115717461">on</strong> by default to partition tables. If this parameter is set to <strong id="EN-US_TOPIC_0000001460562696__b1024101493181633">on</strong>, extra planning is imposed on simple queries, which has no benefits. If you have no partitioned tables, set it to <strong id="EN-US_TOPIC_0000001460562696__b84235270618196">off</strong>.</p>
|
||
</div></div>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001460562696__se5b22c37446c4415b279acfd8357229f"><h4 class="sectiontitle">cursor_tuple_fraction</h4><p id="EN-US_TOPIC_0000001460562696__a2ebee67cca004ab58a737a7dfa5338c8"><strong id="EN-US_TOPIC_0000001460562696__b4730591">Parameter description</strong>: Specifies the optimizer's estimated fraction of a cursor's rows that are retrieved.</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p11690134417513"><strong id="EN-US_TOPIC_0000001460562696__b385813145474">Type</strong>: USERSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__a51ba568458e14174bfd031069fba7ca1"><strong id="EN-US_TOPIC_0000001460562696__en-us_topic_0059779049_en-us_topic_0058967719_b39817432">Value range</strong>: a floating point number ranging from 0.0 to 1.0</p>
|
||
<div class="notice" id="EN-US_TOPIC_0000001460562696__ndf33dc1fc54f485098e8dcdb5ffa6049"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="EN-US_TOPIC_0000001460562696__a652aabfaac554a478d650a45bdf88467">Smaller values than the default value bias the optimizer towards using <strong id="EN-US_TOPIC_0000001460562696__b5688291518120">fast start</strong> plans for cursors, which will retrieve the first few rows quickly while perhaps taking a long time to fetch all rows. Larger values put more emphasis on the total estimated time. At the maximum setting of <strong id="EN-US_TOPIC_0000001460562696__b9828271076">1.0</strong>, cursors are planned exactly like regular queries, considering only the total estimated time and how soon the first rows might be delivered.</p>
|
||
</div></div>
|
||
<p id="EN-US_TOPIC_0000001460562696__a7952e173fa8c4afead372a99be20b3c0"><strong id="EN-US_TOPIC_0000001460562696__b13157807">Default value</strong>: <strong id="EN-US_TOPIC_0000001460562696__b842352706213752">0.1</strong></p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001460562696__s4e30b68a154d42509b93e977a140d3fe"><h4 class="sectiontitle">from_collapse_limit</h4><p id="EN-US_TOPIC_0000001460562696__aedc1debed7794fbc8e00b4aed9cc0d00"><strong id="EN-US_TOPIC_0000001460562696__b40579031">Parameter description</strong>: Specifies whether the optimizer merges sub-queries into upper queries based on the resulting FROM list. The optimizer merges sub-queries into upper queries if the resulting FROM list would have no more than this many items.</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p28315569515"><strong id="EN-US_TOPIC_0000001460562696__b7960191424710">Type</strong>: USERSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__a8becf5ff8c214ad995bb1807c6a6ab3a"><strong id="EN-US_TOPIC_0000001460562696__b98321378712">Value range</strong>: an integer ranging from 1 to INT_MAX</p>
|
||
<div class="notice" id="EN-US_TOPIC_0000001460562696__n026d0777d7f5446096eaf7dad50ebc0f"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="EN-US_TOPIC_0000001460562696__ad651a9537144405985c5411bde67bc56">Smaller values reduce planning time but may lead to inferior execution plans.</p>
|
||
</div></div>
|
||
<p id="EN-US_TOPIC_0000001460562696__ad784812dae9345eb8054069b3b3f8fa9"><strong id="EN-US_TOPIC_0000001460562696__b1413578664144214">Default value</strong>: <strong id="EN-US_TOPIC_0000001460562696__b578690575144214">8</strong></p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001460562696__sd9f0bd0792814592945306fb9037f8ea"><h4 class="sectiontitle">join_collapse_limit</h4><p id="EN-US_TOPIC_0000001460562696__af4ab7829dc284124a555923eaa914227"><strong id="EN-US_TOPIC_0000001460562696__b128391975716">Parameter description</strong>: Specifies whether the optimizer rewrites <strong id="EN-US_TOPIC_0000001460562696__b1083927173">JOIN</strong> constructs (except <strong id="EN-US_TOPIC_0000001460562696__b13839371275">FULL JOIN</strong>) into lists of <strong id="EN-US_TOPIC_0000001460562696__b15839157477">FROM</strong> items based on the number of the items in the result list.</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p1151810813619"><strong id="EN-US_TOPIC_0000001460562696__b716720159479">Type</strong>: USERSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__a2cd28fbd7675449388f0d6be89a54eab"><strong id="EN-US_TOPIC_0000001460562696__b2842271777">Value range</strong>: an integer ranging from 1 to INT_MAX</p>
|
||
<div class="notice" id="EN-US_TOPIC_0000001460562696__n245a41fd28564f68987e92ca4cd50efa"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><ul id="EN-US_TOPIC_0000001460562696__u890569c1964b47b8b4a2518ff0c8ebbe"><li id="EN-US_TOPIC_0000001460562696__lfcab210f3be245bb86da4f55b9363164">Setting this parameter to <strong id="EN-US_TOPIC_0000001460562696__b4108855818120">1</strong> prevents join reordering. As a result, the join order specified in the query will be the actual order in which the relations are joined. The query optimizer does not always choose the optimal join order. Therefore, advanced users can temporarily set this variable to <strong id="EN-US_TOPIC_0000001460562696__b28451671770">1</strong>, and then specify the join order they desire explicitly.</li><li id="EN-US_TOPIC_0000001460562696__la115b23dd5914728b4f52af7c0522354">Smaller values reduce planning time but lead to inferior execution plans.</li></ul>
|
||
</div></div>
|
||
<p id="EN-US_TOPIC_0000001460562696__a958c19c2922444cf8df6566569146a97"><strong id="EN-US_TOPIC_0000001460562696__b1934238297">Default value</strong>: <strong id="EN-US_TOPIC_0000001460562696__b594490573">8</strong></p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001460562696__section333516916483"><h4 class="sectiontitle">enable_from_collapse_hint</h4><p id="EN-US_TOPIC_0000001460562696__p1333515910488"><strong id="EN-US_TOPIC_0000001460562696__b141711031153315">Parameter description</strong>: Specifies whether to rewrite the <strong id="EN-US_TOPIC_0000001460562696__b1872124819341">FROM</strong> list to make the hint take effect, and then rewrite it again based on the <strong id="EN-US_TOPIC_0000001460562696__b1952114516425">from_collapse_limit</strong> and <strong id="EN-US_TOPIC_0000001460562696__b1225024794212">join_collapse_limit</strong> parameters. This parameter is supported by version 8.2.0 or later clusters.</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p1133589194811"><strong id="EN-US_TOPIC_0000001460562696__b1253845174">Type</strong>: USERSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p1433516911488"><strong id="EN-US_TOPIC_0000001460562696__en-us_topic_0059778564_en-us_topic_0058967768_b55121625">Value range</strong>: Boolean</p>
|
||
<ul id="EN-US_TOPIC_0000001460562696__ul19272138209"><li id="EN-US_TOPIC_0000001460562696__li132751342011"><strong id="EN-US_TOPIC_0000001460562696__b16512175618428">on</strong> indicates that the <strong id="EN-US_TOPIC_0000001460562696__b122681958134214">FROM</strong> list is first rewritten in hint mode.</li><li id="EN-US_TOPIC_0000001460562696__li1028201311201"><strong id="EN-US_TOPIC_0000001460562696__b17625182114318">off</strong> indicates that the <strong id="EN-US_TOPIC_0000001460562696__b1836484314">FROM</strong> list is rewritten without difference.</li></ul>
|
||
<div class="notice" id="EN-US_TOPIC_0000001460562696__note1833514915482"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><ul id="EN-US_TOPIC_0000001460562696__ul143357916487"><li id="EN-US_TOPIC_0000001460562696__li10335149144814">If this parameter is enabled, the optimizer preferentially rewrites the <strong id="EN-US_TOPIC_0000001460562696__b55871316174415">FROM</strong> list in hint mode. However, you can learn whether a hint takes effect only after the plan is generated.</li><li id="EN-US_TOPIC_0000001460562696__li12562514414">If this parameter is disabled, the plan is generated in the same way as that in versions earlier than 8.2.0. That is, the plan is generated regardless of whether the table has hints.</li></ul>
|
||
</div></div>
|
||
<p id="EN-US_TOPIC_0000001460562696__p153361291482"><strong id="EN-US_TOPIC_0000001460562696__en-us_topic_0059778871_en-us_topic_0058967732_b6125520212036_2">Default value</strong>: <strong id="EN-US_TOPIC_0000001460562696__b842352706152029">on</strong></p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001460562696__scfe0df60680c4f3eb80ef2f4f0a9fdb1"><h4 class="sectiontitle">plan_mode_seed</h4><p id="EN-US_TOPIC_0000001460562696__a093dd56277d446fd94e31ff5a287301c"><strong id="EN-US_TOPIC_0000001460562696__b842352706152612">Parameter description</strong>: This is a commissioning parameter. Currently, it supports only OPTIMIZE_PLAN and RANDOM_PLAN. <strong id="EN-US_TOPIC_0000001460562696__b842352706195844">OPTIMIZE_PLAN</strong> indicates the optimal plan, the cost of which is estimated using the dynamic planning algorithm, and its value is <strong id="EN-US_TOPIC_0000001460562696__b842352706195932">0</strong>. <strong id="EN-US_TOPIC_0000001460562696__b8423527062002">RANDOM_PLAN</strong> indicates the plan that is randomly generated. If <strong id="EN-US_TOPIC_0000001460562696__b84235270695359">plan_mode_seed</strong> is set to <strong id="EN-US_TOPIC_0000001460562696__b84235270620055">-1</strong>, you do not need to specify the value of the seed identifier. Instead, the optimizer generates a random integer ranging from <strong id="EN-US_TOPIC_0000001460562696__b48833141515533">1</strong> to <strong id="EN-US_TOPIC_0000001460562696__b130068211415533">2147483647</strong>, and then generates a random execution plan based on this random number. If <strong id="EN-US_TOPIC_0000001460562696__b84235270615136">plan_mode_seed</strong> is set to an integer ranging from <strong id="EN-US_TOPIC_0000001460562696__b842352706151126">1</strong> to <strong id="EN-US_TOPIC_0000001460562696__b842352706151131">2147483647</strong>, you need to specify the value of the seed identifier, and the optimizer generates a random execution plan based on the seed value.</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p19589151815612"><strong id="EN-US_TOPIC_0000001460562696__b1536110153479">Type</strong>: USERSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__a9cfa48f755e645e7b40336115970214d"><strong id="EN-US_TOPIC_0000001460562696__b1385107577">Value range</strong>: an integer ranging from -1 to 2147483647</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__a01e14b5deccb40429163a2dd0ad5b957"><strong id="EN-US_TOPIC_0000001460562696__b842352706183425">Default value</strong>: <strong id="EN-US_TOPIC_0000001460562696__b842352706183427">0</strong></p>
|
||
<div class="notice" id="EN-US_TOPIC_0000001460562696__n5b74f1f3817f4a40999dd60f96bc7441"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><ul id="EN-US_TOPIC_0000001460562696__ul97741008174"><li id="EN-US_TOPIC_0000001460562696__li1677450101715">If <strong id="EN-US_TOPIC_0000001460562696__b842352706152041">plan_mode_seed</strong> is set to <strong id="EN-US_TOPIC_0000001460562696__b183348383415215">RANDOM_PLAN</strong>, the optimizer generates different random execution plans, which may not be the optimal. Therefore, to guarantee the query performance, the default value <strong id="EN-US_TOPIC_0000001460562696__b178104695315252">0</strong> is recommended during upgrade, scale-out, scale-in, and O&M.</li><li id="EN-US_TOPIC_0000001460562696__li877411015174">If this parameter is not set to <strong id="EN-US_TOPIC_0000001460562696__b029313267372">0</strong>, the specified hint will not be used.</li></ul>
|
||
</div></div>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001460562696__sccd2418a6b9d4b128cd39d29a63dd94b"><h4 class="sectiontitle">enable_hdfs_predicate_pushdown</h4><p id="EN-US_TOPIC_0000001460562696__aa7acfa6f701741cf8f922d3cb5742d95"><strong id="EN-US_TOPIC_0000001460562696__en-us_topic_0059779049_a7a099aa4bdd6409e8539ad4789ec87e7">Parameter description</strong>: Specifies whether the function of pushing down predicates the native data layer is enabled.</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p13578201998"><strong id="EN-US_TOPIC_0000001460562696__b194241516154712">Type</strong>: SUSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__a0366652382de4a05be595fcc44d7711b"><strong id="EN-US_TOPIC_0000001460562696__b531827443">Value range</strong>: Boolean</p>
|
||
<ul id="EN-US_TOPIC_0000001460562696__u64ee5f6205614d78baf60ec424cc7b3b"><li id="EN-US_TOPIC_0000001460562696__lae1029f1c75c4f30b9635c7434627517"><strong id="EN-US_TOPIC_0000001460562696__b842352706155251">on</strong> indicates this function is enabled.</li><li id="EN-US_TOPIC_0000001460562696__lb8ea3a57ea2d49c7818e5a6d498e4867"><strong id="EN-US_TOPIC_0000001460562696__b1288165781">off</strong> indicates this function is disabled.</li></ul>
|
||
<p id="EN-US_TOPIC_0000001460562696__a63d4cde617d34a2980216706c6e7610d"><strong id="EN-US_TOPIC_0000001460562696__b461852426">Default value</strong>: <strong id="EN-US_TOPIC_0000001460562696__b919813683">on</strong></p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001460562696__section15467184413352"><h4 class="sectiontitle">windowagg_pushdown_enhancement</h4><p id="EN-US_TOPIC_0000001460562696__p246764433519"><strong id="EN-US_TOPIC_0000001460562696__b122258198469">Parameter description</strong>: Specifies whether to enable enhanced predicate pushdown for window functions in aggregation scenarios. (This parameter is supported by version 8.2.0 or later clusters.)</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p164674443357"><strong id="EN-US_TOPIC_0000001460562696__b1079804632">Type</strong>: SUSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p124671344153518"><strong id="EN-US_TOPIC_0000001460562696__b1622943726">Value range</strong>: Boolean</p>
|
||
<ul id="EN-US_TOPIC_0000001460562696__ul946784412354"><li id="EN-US_TOPIC_0000001460562696__li646712445358"><strong id="EN-US_TOPIC_0000001460562696__b440765924615">on</strong> indicates that the predicate pushdown enhancement for window functions is enabled in aggregation scenarios.</li><li id="EN-US_TOPIC_0000001460562696__li5467164443511"><strong id="EN-US_TOPIC_0000001460562696__b182791951104711">off</strong> indicates that the predicate pushdown enhancement for window functions is disabled in aggregation scenarios.</li></ul>
|
||
<p id="EN-US_TOPIC_0000001460562696__p10467144412355"><strong id="EN-US_TOPIC_0000001460562696__b1680957779">Default value</strong>: <strong id="EN-US_TOPIC_0000001460562696__b1875990108">on</strong></p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001460562696__section3906332173913"><h4 class="sectiontitle">implied_quality_optmode</h4><p id="EN-US_TOPIC_0000001460562696__p890633217398"><strong id="EN-US_TOPIC_0000001460562696__b894112213484">Parameter description</strong>: Specifies how to pass conditions for the equivalent columns in a statement. (This parameter is supported by version 8.2.0 or later clusters.)</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p1906103263911"><strong id="EN-US_TOPIC_0000001460562696__b1573740532">Type</strong>: SUSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p109070329398"><strong id="EN-US_TOPIC_0000001460562696__b59838883">Value range</strong>: enumerated values</p>
|
||
<ul id="EN-US_TOPIC_0000001460562696__ul18907103273917"><li id="EN-US_TOPIC_0000001460562696__li4907132163913"><strong id="EN-US_TOPIC_0000001460562696__b111110531489">normal</strong> indicates forward compatibility with 8.1.3 and earlier versions, that is, the implied expression behavior is optimized.</li><li id="EN-US_TOPIC_0000001460562696__li189071432183914"><strong id="EN-US_TOPIC_0000001460562696__b131120198527">negative</strong> indicates that the implied expression behavior is not optimized.</li><li id="EN-US_TOPIC_0000001460562696__li198431243114613"><strong id="EN-US_TOPIC_0000001460562696__b1777173585217">positive</strong> indicates that type conversion expressions are optimized in addition to the operations specified by <strong id="EN-US_TOPIC_0000001460562696__b1935115795210">normal</strong>.</li></ul>
|
||
<p id="EN-US_TOPIC_0000001460562696__p19907143263910"><strong id="EN-US_TOPIC_0000001460562696__b112852360143515">Default value:</strong> <strong id="EN-US_TOPIC_0000001460562696__b188403184143515">normal</strong></p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001460562696__sa4da81a9ccb841caab3759ee97d61b84"><h4 class="sectiontitle">enable_random_datanode</h4><p id="EN-US_TOPIC_0000001460562696__a6f6fe14b2e484184bbe7c1e3a5b6e002"><strong id="EN-US_TOPIC_0000001460562696__b52412465316">Parameter description</strong>: Specifies whether the function that random query about DNs in the replication table is enabled. A complete data table is stored on each DN for random retrieval to release the pressure on nodes.</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p11981828167"><strong id="EN-US_TOPIC_0000001460562696__b74673180479">Type</strong>: USERSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__a28c3d6d1c499408e94a96cf4dada0266"><strong id="EN-US_TOPIC_0000001460562696__b1461152396">Value range</strong>: Boolean</p>
|
||
<ul id="EN-US_TOPIC_0000001460562696__u02f0811b4b0e45c59620c567498dbb00"><li id="EN-US_TOPIC_0000001460562696__l1e3963771a02482b93919cc75cf05fc8"><strong id="EN-US_TOPIC_0000001460562696__b84235270616241">on</strong>: This function is enabled.</li><li id="EN-US_TOPIC_0000001460562696__l3c55a83741424b5db7d8f2c1dfd5eca5"><strong id="EN-US_TOPIC_0000001460562696__b842352706162643">off</strong>: This function is disabled.</li></ul>
|
||
<p id="EN-US_TOPIC_0000001460562696__adbc8829f25ee449288f5718adccd6965"><strong id="EN-US_TOPIC_0000001460562696__b765398823">Default value</strong>: <strong id="EN-US_TOPIC_0000001460562696__b989360937">on</strong></p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001460562696__s7ef00d212ddf4d9a82f52f66890c4826"><h4 class="sectiontitle">hashagg_table_size</h4><p id="EN-US_TOPIC_0000001460562696__a04fdef1b84584844b84d41bd29691bfd"><strong id="EN-US_TOPIC_0000001460562696__b32915318355">Parameter description</strong>: Specifies the hash table size during <strong id="EN-US_TOPIC_0000001460562696__b14298193112354">HASH AGG</strong> execution.</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p12789371614"><strong id="EN-US_TOPIC_0000001460562696__b1392515188478">Type</strong>: USERSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__a91359beb6533429cb53a7689891d2d12"><strong id="EN-US_TOPIC_0000001460562696__b287615718713">Value range</strong>: an integer ranging from 0 to INT_MAX/2</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__ae7f7dd34615c404795cb90d4bed1d2f1"><strong id="EN-US_TOPIC_0000001460562696__b801134727">Default value</strong>: <strong id="EN-US_TOPIC_0000001460562696__b1351069442">0</strong></p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001460562696__se75ab653da604c90acf654efc674c720"><a name="EN-US_TOPIC_0000001460562696__se75ab653da604c90acf654efc674c720"></a><a name="se75ab653da604c90acf654efc674c720"></a><h4 class="sectiontitle">enable_codegen</h4><p id="EN-US_TOPIC_0000001460562696__a3aa5e435845c483a8c92ad701212abf6"><strong id="EN-US_TOPIC_0000001460562696__b842352706172916">Parameter description</strong>: Specifies whether code optimization can be enabled. Currently, the code optimization uses the LLVM optimization.</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p187493451867"><strong id="EN-US_TOPIC_0000001460562696__b18120131914712">Type</strong>: USERSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__a79ff638ba84c47bf915bd054d20c36a3"><strong id="EN-US_TOPIC_0000001460562696__en-us_topic_0059778487_aa1fc9bedad6b4779a216c176c5046dcc">Value range</strong>: Boolean</p>
|
||
<ul id="EN-US_TOPIC_0000001460562696__u65693ccc1eb44b018b9d0a3ce2e044c1"><li id="EN-US_TOPIC_0000001460562696__lef2b592b699e4398a87f2fecedb1a0ac"><strong id="EN-US_TOPIC_0000001460562696__en-us_topic_0058967719_b8423527062040">on</strong> indicates code optimization can be enabled.</li><li id="EN-US_TOPIC_0000001460562696__l4222fb5a451642ab9bdf6326a7fa85fa"><strong id="EN-US_TOPIC_0000001460562696__en-us_topic_0059779049_en-us_topic_0058967719_b842352706151122">off</strong> indicates code optimization cannot be enabled.<div class="notice" id="EN-US_TOPIC_0000001460562696__n2439c6444cc24bfabb32d963959a1007"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="EN-US_TOPIC_0000001460562696__a7ca8a2ea0eec4152968d25330f09d80c">Currently, the LLVM optimization only supports the vectorized executor and SQL on Hadoop features. You are advised to set this parameter to <strong id="EN-US_TOPIC_0000001460562696__b84235270618113">off</strong> in other cases.</p>
|
||
</div></div>
|
||
</li></ul>
|
||
<p id="EN-US_TOPIC_0000001460562696__a03e81b26e0f54e2a8951a4848d275d9a"><strong id="EN-US_TOPIC_0000001460562696__b19573715114114">Default value</strong>: <strong id="EN-US_TOPIC_0000001460562696__b842352706172116">on</strong></p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001460562696__s5fcb2bfd4ea844d483b3926e314425d0"><h4 class="sectiontitle">codegen_strategy</h4><p id="EN-US_TOPIC_0000001460562696__p15481103754112"><strong id="EN-US_TOPIC_0000001460562696__b798985515425">Parameter description</strong>: Specifies the codegen optimization strategy that is used when an expression is converted to codegen-based.</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p19025512612"><strong id="EN-US_TOPIC_0000001460562696__b123051719124710">Type</strong>: USERSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__a307e11fea6d2463085d65e03799f0d4f"><strong id="EN-US_TOPIC_0000001460562696__b128911575718">Value range</strong>: enumerated values</p>
|
||
<ul id="EN-US_TOPIC_0000001460562696__uc63c3032ddcd4c449fa0108e493ed740"><li id="EN-US_TOPIC_0000001460562696__l31ffae58aa664ef194f791e027a0c568"><strong id="EN-US_TOPIC_0000001460562696__b842352706155117">partial</strong> indicates that you can still call the LLVM dynamic optimization strategy using the codegen framework of an expression even if functions that are not codegen-based exist in the expression.</li><li id="EN-US_TOPIC_0000001460562696__l656c136973b34ee48057a73c9c276f5c"><strong id="EN-US_TOPIC_0000001460562696__b84235270616530">pure</strong> indicates that the LLVM dynamic optimization strategy can be called only when all functions in an expression can be codegen-based.<div class="notice" id="EN-US_TOPIC_0000001460562696__n4f43d5c55f0345a98fe7b9ddd1c4ccec"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="EN-US_TOPIC_0000001460562696__a8e90b7756a4c48c0ab8f14ae47840b31">In the scenario where query performance reduces after the codegen function is enabled, you can set this parameter to <strong id="EN-US_TOPIC_0000001460562696__b842352706161929">pure</strong>. In other scenarios, do not change the default value <strong id="EN-US_TOPIC_0000001460562696__b1426378143202417">partial</strong> of this parameter.</p>
|
||
</div></div>
|
||
</li></ul>
|
||
<p id="EN-US_TOPIC_0000001460562696__a8c30d3359cc542a6a90a32b74a4ff5c9"><strong id="EN-US_TOPIC_0000001460562696__b37427418113820">Default value</strong>: <strong id="EN-US_TOPIC_0000001460562696__b842352706125553">partial</strong></p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001460562696__s83e56121e26c4dfcb0bfd4862a49f983"><h4 class="sectiontitle">enable_codegen_print</h4><p id="EN-US_TOPIC_0000001460562696__p12447115014114"><strong id="EN-US_TOPIC_0000001460562696__b1233918115436">Parameter description:</strong> Specifies whether the LLVM IR function can be printed in logs.</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p94641331974"><strong id="EN-US_TOPIC_0000001460562696__b9484101916479">Type</strong>: USERSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__ad1b383d7238943409413dedf9130bf96"><strong id="EN-US_TOPIC_0000001460562696__b547856857">Value range</strong>: Boolean</p>
|
||
<ul id="EN-US_TOPIC_0000001460562696__ue5b5dcbbfbf54a1e804306b9f79b0ed9"><li id="EN-US_TOPIC_0000001460562696__l577bb3c3ae594c98a5498c3d4f196623"><strong id="EN-US_TOPIC_0000001460562696__en-us_topic_0058967719_b842352706144751">on</strong> indicates that the LLVM IR function can be printed in logs.</li><li id="EN-US_TOPIC_0000001460562696__lae54f021b5ea411d9c5fa7151332496f"><strong id="EN-US_TOPIC_0000001460562696__en-us_topic_0058967719_b1558771197144814">off</strong> indicates that the LLVM IR function cannot be printed in logs.</li></ul>
|
||
<p id="EN-US_TOPIC_0000001460562696__a8e63e60b88aa4f0d80364fdadf3d6605"><strong id="EN-US_TOPIC_0000001460562696__b55233292105553">Default value</strong>: <strong id="EN-US_TOPIC_0000001460562696__b842352706172155">off</strong></p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001460562696__sa34f40a091064ae5b3b69741f431ed11"><h4 class="sectiontitle">codegen_cost_threshold</h4><p id="EN-US_TOPIC_0000001460562696__p01875587419"><strong id="EN-US_TOPIC_0000001460562696__en-us_topic_0059779049_a9501ffbf09334545a01ef8871161f185">Parameter description</strong>: The LLVM compilation takes some time to generate executable machine code. Therefore, LLVM compilation is beneficial only when the actual execution cost is more than the sum of the code required for generating machine code and the optimized execution cost. This parameter specifies a threshold. If the estimated execution cost exceeds the threshold, LLVM optimization is performed. </p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p151411013975"><strong id="EN-US_TOPIC_0000001460562696__b186492019184713">Type</strong>: USERSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__af2a3e76c0fb349a49c3d9d5cf3f9ec8b"><strong id="EN-US_TOPIC_0000001460562696__b9264144791019">Value range</strong>: an integer ranging from <strong id="EN-US_TOPIC_0000001460562696__b1790631814331">0</strong> to <strong id="EN-US_TOPIC_0000001460562696__b13200526113313">INT_MAX</strong></p>
|
||
<p id="EN-US_TOPIC_0000001460562696__a5e9ad717ad384c4583f856bf09a90fe3"><strong id="EN-US_TOPIC_0000001460562696__b13360219">Default value</strong>: <strong id="EN-US_TOPIC_0000001460562696__b842352706205450">10000</strong></p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001460562696__section1405201162216"><h4 class="sectiontitle">llvm_compile_expr_limit</h4><p id="EN-US_TOPIC_0000001460562696__p32723416223"><strong id="EN-US_TOPIC_0000001460562696__b23136319618">Parameter description</strong>: This sets a limit on the number of expressions that can be compiled using LLVM. If the number of expressions exceeds the limit, only the initial ones will be compiled, and an alert will be triggered. To enable the alert, run <strong id="EN-US_TOPIC_0000001460562696__b186581958171611">SET analysis_options="on(LLVM_COMPILE)"</strong> before executing <strong id="EN-US_TOPIC_0000001460562696__b314371212173">explain performance</strong>. This parameter is supported by clusters of version 8.2.1.220 or later.</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p1727274202213"><strong id="EN-US_TOPIC_0000001460562696__b1973416710211">Type</strong>: USERSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p1127212482212"><strong id="EN-US_TOPIC_0000001460562696__b1767348181118">Value range</strong>: an integer ranging from <strong id="EN-US_TOPIC_0000001460562696__b12403112562110">–1</strong> to <strong id="EN-US_TOPIC_0000001460562696__b1629414286211">INT_MAX</strong></p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p1127215418224"><strong id="EN-US_TOPIC_0000001460562696__b1923312121110">Default value</strong>: <strong id="EN-US_TOPIC_0000001460562696__b14923171217118">500</strong></p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001460562696__s7c9f76d1e73345e09fae2e5f3e2a6cdd"><h4 class="sectiontitle">enable_constraint_optimization</h4><p id="EN-US_TOPIC_0000001460562696__a08187f3482f2461b9e718be85ffc5e77"><strong id="EN-US_TOPIC_0000001460562696__en-us_topic_0059779049_a3bc5fd0e1ba9485286b2bb37d887668d">Parameter description</strong>: Specifies whether the informational constraint optimization execution plan can be used for an HDFS foreign table.</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p15916185997"><strong id="EN-US_TOPIC_0000001460562696__b14808119164714">Type</strong>: SUSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__a8732120b4c9d4577a10dfee2bbb61903"><strong id="EN-US_TOPIC_0000001460562696__b339438065">Value range</strong>: Boolean</p>
|
||
<ul id="EN-US_TOPIC_0000001460562696__u2efbf664c7b74af9bdd32fc293ae1374"><li id="EN-US_TOPIC_0000001460562696__ldeba1cbcb94d40209d79a72e43a075cb"><strong id="EN-US_TOPIC_0000001460562696__en-us_topic_0058967719_b84235270620307">on</strong> indicates the plan can be used.</li><li id="EN-US_TOPIC_0000001460562696__la7e6792f98a1499b8116e901831c1d3d"><strong id="EN-US_TOPIC_0000001460562696__en-us_topic_0058967719_b842352706203013">off</strong> indicates the plan cannot be used.</li></ul>
|
||
<p id="EN-US_TOPIC_0000001460562696__af9bac490815c44d2b3db4ee36242ba80"><strong id="EN-US_TOPIC_0000001460562696__b974740206">Default value</strong>: <strong id="EN-US_TOPIC_0000001460562696__b1388604170">on</strong></p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001460562696__s3210646666fe4eb4806c86579cfa0684"><h4 class="sectiontitle">enable_bloom_filter</h4><p id="EN-US_TOPIC_0000001460562696__p37461056163710"><strong id="EN-US_TOPIC_0000001460562696__en-us_topic_0059779049_a63ae7c510a9645a6b3fa507757813acf">Parameter description</strong>: Specifies whether the BloomFilter optimization is used.</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p124764222720"><strong id="EN-US_TOPIC_0000001460562696__b72610209472">Type</strong>: USERSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__a9d86c0faeb7843e8acb2fd6b2025ce79"><strong id="EN-US_TOPIC_0000001460562696__b1647177478">Value range</strong>: Boolean</p>
|
||
<ul id="EN-US_TOPIC_0000001460562696__u06446d6a5430483fa7e05d6d4c5ecc34"><li id="EN-US_TOPIC_0000001460562696__lfa10e2ef77974435b3dfb55c0fddfa5b"><strong id="EN-US_TOPIC_0000001460562696__en-us_topic_0058967719_b8423527069518">on</strong> indicates the BloomFilter optimization can be used.</li><li id="EN-US_TOPIC_0000001460562696__lf654b02d502a490a8fb61f1ba65d0fbf"><strong id="EN-US_TOPIC_0000001460562696__en-us_topic_0059779049_en-us_topic_0058967719_b84235270695119">off</strong> indicates the BloomFilter optimization cannot be used.</li></ul>
|
||
<p id="EN-US_TOPIC_0000001460562696__a5da6e1ad64cc4e91b40aa25beecc60c1"><strong id="EN-US_TOPIC_0000001460562696__b1967175143">Default value</strong>: <strong id="EN-US_TOPIC_0000001460562696__b1223810543">on</strong></p>
|
||
<div class="notice" id="EN-US_TOPIC_0000001460562696__note2726641181713"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="EN-US_TOPIC_0000001460562696__p19726241141711">Scenario: If in a HASH JOIN, the thread of the foreign table contains HDFS tables or column-store tables, the Bloom filter is triggered.</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p43131745326">Constraints:</p>
|
||
<ol id="EN-US_TOPIC_0000001460562696__ol32413119329"><li id="EN-US_TOPIC_0000001460562696__li319518392382">Only<strong id="EN-US_TOPIC_0000001460562696__b1269184383717"> INNER JOIN</strong>, <strong id="EN-US_TOPIC_0000001460562696__b7430349153713">SEMI JOIN</strong>,<strong id="EN-US_TOPIC_0000001460562696__b19944542376"> RIGHT JOIN</strong>, <strong id="EN-US_TOPIC_0000001460562696__b48685943715">RIGHT SEMI JOIN</strong>, <strong id="EN-US_TOPIC_0000001460562696__b4775184123819">RIGHT ANTI JOIN</strong> and <strong id="EN-US_TOPIC_0000001460562696__b2081715108386">RIGHT ANTI FULL JOIN</strong> are supported.</li><li id="EN-US_TOPIC_0000001460562696__li19446161873210">The number of rows in the internal table in the join cannot exceed 50,000.</li><li id="EN-US_TOPIC_0000001460562696__li22416115324">JOIN condition of the internal table: It cannot be an expression for HDFS internal or foreign tables. It can be an expression for column-store tables, but only at the non-join layer.</li><li id="EN-US_TOPIC_0000001460562696__li98690365336">The join condition of the foreign table must be simple column join.</li><li id="EN-US_TOPIC_0000001460562696__li67595448345">When the join conditions of the internal and foreign tables (HDFS) are both simple column joins, the estimated data that can be removed at the plan layer must be over 1/3.</li><li id="EN-US_TOPIC_0000001460562696__li15802936193513">Joined columns cannot contain NULL values.</li><li id="EN-US_TOPIC_0000001460562696__li2677155415423">Data is not spilled to disks at the JOIN layer.</li><li id="EN-US_TOPIC_0000001460562696__li15519172583618">Data type:<ul id="EN-US_TOPIC_0000001460562696__ul14791046132412"><li id="EN-US_TOPIC_0000001460562696__li1179114612418">HDFS internal and foreign tables support SMALLINT, INTEGER, BIGINT, REAL/FLOAT4, DOUBLE PRECISION/FLOAT8, CHAR(n)/CHARACTER(n)/NCHAR(n), VARCHAR(n)/CHARACTER VARYING(n), CLOB and TEXT.</li><li id="EN-US_TOPIC_0000001460562696__li82722412295">Column-store tables support SMALLINT, INTEGER, BIGINT, OID, "char", CHAR(n)/CHARACTER(n)/NCHAR(n), VARCHAR(n)/CHARACTER VARYING(n), NVARCHAR2(n), CLOB, TEXT, DATE, TIME, TIMESTAMP and TIMESTAMPTZ. The collation of the character type must be <strong id="EN-US_TOPIC_0000001460562696__b2157419448">C</strong>.</li></ul>
|
||
</li></ol>
|
||
</div></div>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001460562696__section251911538557"><h4 class="sectiontitle">enable_extrapolation_stats</h4><p id="EN-US_TOPIC_0000001460562696__p15385101113819"><strong id="EN-US_TOPIC_0000001460562696__b105300538556">Parameter description</strong>: Specifies whether to use the extrapolation logic based on historical statistics. Using this logic may increase the accuracy of estimation for tables whose statistics have not been collected. However, there is also a possibility that the estimation is too large due to incorrect inference.</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p850553110712"><strong id="EN-US_TOPIC_0000001460562696__b1579710559582">Type</strong>: USERSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p14537753185518"><strong id="EN-US_TOPIC_0000001460562696__b0543115335516">Value range</strong>: Boolean</p>
|
||
<ul id="EN-US_TOPIC_0000001460562696__ul205481253115511"><li id="EN-US_TOPIC_0000001460562696__li95523533558"><strong id="EN-US_TOPIC_0000001460562696__b842352706113713">on</strong> indicates that the extrapolation logic is used for data of DATE type based on historical statistics.</li><li id="EN-US_TOPIC_0000001460562696__li4559253135515"><strong id="EN-US_TOPIC_0000001460562696__b842352706113737">off</strong> indicates that the extrapolation logic is not used for data of DATE type based on historical statistics.</li></ul>
|
||
<p id="EN-US_TOPIC_0000001460562696__p85663536556"><strong id="EN-US_TOPIC_0000001460562696__b23260556">Default value</strong>:</p>
|
||
<ul id="EN-US_TOPIC_0000001460562696__ul12406172216259"><li id="EN-US_TOPIC_0000001460562696__li1440622211257">If the current cluster is upgraded from an earlier version to 8.2.0.100, the default value is <strong id="EN-US_TOPIC_0000001460562696__b5620142617531">off</strong> to ensure forward compatibility.</li><li id="EN-US_TOPIC_0000001460562696__li104066227252">If the cluster version 8.2.0.100 is newly installed, the default value is <strong id="EN-US_TOPIC_0000001460562696__b14301152185318">on</strong>.</li></ul>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001460562696__section114241119217"><h4 class="sectiontitle">autoanalyze</h4><p id="EN-US_TOPIC_0000001460562696__p54811455387"><strong id="EN-US_TOPIC_0000001460562696__b88417710267">Parameter description</strong>: Specifies whether to allow automatic statistics collection for a table that has no statistics or a table whose amount of data modification reaches the threshold for triggering <strong id="EN-US_TOPIC_0000001460562696__b43041631417">ANALYZE</strong> when a plan is generated. In this case, <strong id="EN-US_TOPIC_0000001460562696__b712124595615">AUTOANALYZE</strong> cannot be triggered for foreign tables or temporary tables with the <strong id="EN-US_TOPIC_0000001460562696__b12121164595612">ON COMMIT [DELETE ROWS|DROP]</strong> option. To collect statistics, you need to manually perform the <strong id="EN-US_TOPIC_0000001460562696__b814492518218">ANALYZE</strong> operation. If an exception occurs in the database during the execution of autoanalyze on a table, after the database is recovered, the system may still prompt you to collect the statistics of the table when you run the statement again. In this case, manually perform the <strong id="EN-US_TOPIC_0000001460562696__b9214102175410">ANALYZE</strong> operation on the table to synchronize statistics.</p>
|
||
<div class="notice" id="EN-US_TOPIC_0000001460562696__note1298692412497"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="EN-US_TOPIC_0000001460562696__p198615243491">If the amount of data modification reaches the threshold for triggering <strong id="EN-US_TOPIC_0000001460562696__b287392735419">ANALYZE</strong>, the amount of data modification exceeds <strong id="EN-US_TOPIC_0000001460562696__b5874127115411">autovacuum_analyze_threshold</strong> + <strong id="EN-US_TOPIC_0000001460562696__b118742276549">autovacuum_analyze_scale_factor * </strong><em id="EN-US_TOPIC_0000001460562696__i587582765414">reltuples</em>. <em id="EN-US_TOPIC_0000001460562696__i168751027135412">reltuples</em> indicates the estimated number of rows in the table recorded in <strong id="EN-US_TOPIC_0000001460562696__b18875192765418">pg_class</strong>.</p>
|
||
</div></div>
|
||
<p id="EN-US_TOPIC_0000001460562696__p1623312562813"><strong id="EN-US_TOPIC_0000001460562696__b174036204477">Type</strong>: SUSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p9453011128"><strong id="EN-US_TOPIC_0000001460562696__b645918119211">Value range</strong>: Boolean</p>
|
||
<ul id="EN-US_TOPIC_0000001460562696__ul14641815210"><li id="EN-US_TOPIC_0000001460562696__li18467611428"><strong id="EN-US_TOPIC_0000001460562696__b842352706113848">on</strong> indicates that the table statistics are automatically collected.</li><li id="EN-US_TOPIC_0000001460562696__li84785114211"><strong id="EN-US_TOPIC_0000001460562696__b684338908113915">off</strong> indicates that the table statistics are not automatically collected.</li></ul>
|
||
<p id="EN-US_TOPIC_0000001460562696__p0489811524"><strong id="EN-US_TOPIC_0000001460562696__b1775365611188">Default value</strong>: <strong id="EN-US_TOPIC_0000001460562696__b10759256141815">on</strong></p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001460562696__sa7cc15b1aef14ba0824d8e3c143f725f"><h4 class="sectiontitle">query_dop</h4><p id="EN-US_TOPIC_0000001460562696__p68596421577"><strong id="EN-US_TOPIC_0000001460562696__b1755412110479">Parameter description</strong>: Specifies the user-defined degree of parallelism.</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p85401461471"><strong id="EN-US_TOPIC_0000001460562696__b544823114713">Type</strong>: USERSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__aa4b3334c2cd44e89a95248171499825b"><strong id="EN-US_TOPIC_0000001460562696__b3913172915116">Value range</strong>: an integer ranging from -64 to 64.</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p379719178488">[1, 64]: Fixed SMP is enabled, and the system will use the specified degree.</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p75511411124811">0: SMP adaptation function is enabled. The system dynamically selects the optimal parallelism degree [1,8] (x86 platforms) for each query based on the resource usage and query plans.</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p1628730154816">[-64, -1]: SMP adaptation is enabled, and the system will dynamically select a degree from the limited range.</p>
|
||
<div class="note" id="EN-US_TOPIC_0000001460562696__n7b33233d31524eea973ffc79e2388ff7"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001460562696__ul8224132315341"><li id="EN-US_TOPIC_0000001460562696__li33971156122610">For TP services that mainly involve short queries, if services cannot be optimized through lightweight CNs or statement delivery, it will take a long time to generate an SMP plan. You are advised to set <strong id="EN-US_TOPIC_0000001460562696__b985382511582">query_dop</strong> to <strong id="EN-US_TOPIC_0000001460562696__b158591125145810">1</strong>. For AP services with complex statements, you are advised to set <strong id="EN-US_TOPIC_0000001460562696__b157841525584">query_dop</strong> to <strong id="EN-US_TOPIC_0000001460562696__b1678613521589">0</strong>.</li><li id="EN-US_TOPIC_0000001460562696__li1422432313420">After enabling concurrent queries, ensure you have sufficient CPU, memory, network, and I/O resources to achieve the optimal performance.</li><li id="EN-US_TOPIC_0000001460562696__li112241223103412">To prevent performance deterioration caused by an overly large value of <strong id="EN-US_TOPIC_0000001460562696__b5407455201719">query_dop</strong>, the system calculates the maximum number of available CPU cores for a DN and uses the number as the upper limit for this parameter. If the value of <strong id="EN-US_TOPIC_0000001460562696__b62039344188">query_dop</strong> is greater than 4 and also the upper limit, the system resets <strong id="EN-US_TOPIC_0000001460562696__b17910135871815">query_dop</strong> to the upper limit.</li></ul>
|
||
</div></div>
|
||
<p id="EN-US_TOPIC_0000001460562696__aadd79139e28e46aea167bb03a0c01940"><strong id="EN-US_TOPIC_0000001460562696__b7621172513364">Default value</strong>: <strong id="EN-US_TOPIC_0000001460562696__b362192553612">1</strong></p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001460562696__section174617504332"><h4 class="sectiontitle">query_dop_ratio</h4><p id="EN-US_TOPIC_0000001460562696__p1070314513331"><strong id="EN-US_TOPIC_0000001460562696__b720183513611">Parameter description</strong>: Specifies the DOP multiple used to adjust the optimal DOP preset in the system when <strong id="EN-US_TOPIC_0000001460562696__b151111327145718">query_dop</strong> is set to <strong id="EN-US_TOPIC_0000001460562696__b1137972965718">0</strong>. That is, DOP = Preset DOP x query_dop_ratio (ranging from 1 to 64). If this parameter is set to <strong id="EN-US_TOPIC_0000001460562696__b13653618810">1</strong>, the DOP cannot be adjusted.</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p1070355118339"><strong id="EN-US_TOPIC_0000001460562696__b172305231598">Type</strong>: USERSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p1183014117366"><strong id="EN-US_TOPIC_0000001460562696__b1160520322911">Value range</strong>: a floating point number ranging from 0 to 64</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p570355163318"><strong id="EN-US_TOPIC_0000001460562696__b16798124917916">Default value</strong>: <strong id="EN-US_TOPIC_0000001460562696__b1480516491291">1</strong></p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001460562696__s3f3dd81692d64ce08fa1a352e9ebb56f"><h4 class="sectiontitle">debug_group_dop</h4><p id="EN-US_TOPIC_0000001460562696__a72d25f2d0320437c992a285dcb72ce7f"><strong id="EN-US_TOPIC_0000001460562696__b111901359796">Parameter description</strong>: Specifies the unified DOP parallelism degree allocated to the groups that use the Stream operator as the vertex in the generated execution plan when the value of <strong id="EN-US_TOPIC_0000001460562696__b4231184331610">query_dop</strong> is <strong id="EN-US_TOPIC_0000001460562696__b18154519167">0</strong>. This parameter is used to manually specify the DOP for specific groups for performance optimization. Its format is <strong id="EN-US_TOPIC_0000001460562696__b186173412593">G1,D1,G2,D2,...,</strong>, where <strong id="EN-US_TOPIC_0000001460562696__b66243411591">G1</strong> and <strong id="EN-US_TOPIC_0000001460562696__b166273435911">G2</strong> indicate the group IDs that can be obtained from logs and <strong id="EN-US_TOPIC_0000001460562696__b196293475918">D1</strong> and <strong id="EN-US_TOPIC_0000001460562696__b1621334135915">D2</strong> indicate the specified DOP values and can be any positive integers.</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p1245071620182"><strong id="EN-US_TOPIC_0000001460562696__b2620202222016">Type</strong>: USERSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__af350ee0eedbe4e05b3454c4d69ce0b7c"><strong id="EN-US_TOPIC_0000001460562696__en-us_topic_0059777791_en-us_topic_0058967586_b37796097_1">Value range</strong>: a string</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__a39299a499b1e41288f2d9ea1fdc82e42"><strong id="EN-US_TOPIC_0000001460562696__b20486111922114">Default value</strong>: empty</p>
|
||
<div class="notice" id="EN-US_TOPIC_0000001460562696__n83cc48fd8396484199f83f9de17a7247"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="EN-US_TOPIC_0000001460562696__a0c78987d9e3a4018abbf4890e1f7804d">This parameter is used only for internal optimization and cannot be set. You are advised to use the default value.</p>
|
||
</div></div>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001460562696__section17142163813317"><h4 class="sectiontitle">enable_analyze_check</h4><p id="EN-US_TOPIC_0000001460562696__p1151038153114"><strong id="EN-US_TOPIC_0000001460562696__b0469163713815">Parameter description:</strong> Checks whether statistics were collected about tables whose <strong id="EN-US_TOPIC_0000001460562696__b1546915370815">reltuples</strong> and <strong id="EN-US_TOPIC_0000001460562696__b346953719813">relpages</strong> are shown as <strong id="EN-US_TOPIC_0000001460562696__b1948510371386">0</strong> in <strong id="EN-US_TOPIC_0000001460562696__b19485113716814">pg_class</strong> during plan generation. <strong id="EN-US_TOPIC_0000001460562696__b7570142512153">This parameter has been discarded in clusters of version 8.1.3 or later, but is reserved for compatibility with earlier versions. The setting of this parameter does not take effect.</strong></p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p13405123213812"><strong id="EN-US_TOPIC_0000001460562696__b10474162354720">Type</strong>: SUSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p8164153818317"><strong id="EN-US_TOPIC_0000001460562696__b84736791">Value range</strong>: Boolean</p>
|
||
<ul id="EN-US_TOPIC_0000001460562696__ul131721738173119"><li id="EN-US_TOPIC_0000001460562696__li31771438193112"><strong id="EN-US_TOPIC_0000001460562696__b23808378920">on</strong> enables the check.</li><li id="EN-US_TOPIC_0000001460562696__li1618653812317"><strong id="EN-US_TOPIC_0000001460562696__b153334391794">off</strong> disables the check.</li></ul>
|
||
<p id="EN-US_TOPIC_0000001460562696__p101948389310"><strong id="EN-US_TOPIC_0000001460562696__b115051840899">Default value</strong>: <strong id="EN-US_TOPIC_0000001460562696__b11505440097">on</strong></p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001460562696__section93071140163618"><h4 class="sectiontitle">enable_sonic_hashagg</h4><p id="EN-US_TOPIC_0000001460562696__p931714063616"><strong id="EN-US_TOPIC_0000001460562696__b350515225411">Parameter description</strong>: Specifies whether to use the Hash Agg operator for column-oriented hash table design when certain constraints are met.</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p20210175616717"><strong id="EN-US_TOPIC_0000001460562696__b196651323134718">Type</strong>: USERSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p53291840133614"><strong id="EN-US_TOPIC_0000001460562696__b1380622864115">Value range</strong>: Boolean</p>
|
||
<ul id="EN-US_TOPIC_0000001460562696__ul1533984011364"><li id="EN-US_TOPIC_0000001460562696__li734412403366"><strong id="EN-US_TOPIC_0000001460562696__b1734763014462">on</strong> indicates that the Hash Agg operator is used for column-oriented hash table design when certain constraints are met.</li><li id="EN-US_TOPIC_0000001460562696__li13542040183610"><strong id="EN-US_TOPIC_0000001460562696__b361594917464">off</strong> indicates that the Hash Agg operator is not used for column-oriented hash table design.</li></ul>
|
||
<div class="note" id="EN-US_TOPIC_0000001460562696__note571352115446"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001460562696__ul312336101611"><li id="EN-US_TOPIC_0000001460562696__li112346121620">If <strong id="EN-US_TOPIC_0000001460562696__b8909711134211">enable_sonic_hashagg</strong> is enabled and certain constraints are met, the Hash Agg operator will be used for column-oriented hash table design, and the memory usage of the operator can be reduced. However, in scenarios where the code generation technology (enabled by <a href="#EN-US_TOPIC_0000001460562696__se75ab653da604c90acf654efc674c720">enable_codegen</a>) can significantly improve performance, the performance of the operator may deteriorate.</li><li id="EN-US_TOPIC_0000001460562696__li181231765169">If <strong id="EN-US_TOPIC_0000001460562696__b8871122316020">enable_sonic_hashagg</strong> is set to <strong id="EN-US_TOPIC_0000001460562696__b17877152313011">on</strong>, when certain constraints are met, the hash aggregation operator designed for column-oriented hash tables is used and its name is displayed as <strong id="EN-US_TOPIC_0000001460562696__b88785231709">Sonic Hash Aggregation</strong> in the output of the Explain Analyze/Performance operation. When the constraints are not met, the operator name is displayed as <strong id="EN-US_TOPIC_0000001460562696__b28781323901">Hash Aggregation</strong>.</li></ul>
|
||
</div></div>
|
||
<p id="EN-US_TOPIC_0000001460562696__p536574017365"><strong id="EN-US_TOPIC_0000001460562696__b1597913319410">Default value</strong>: <strong id="EN-US_TOPIC_0000001460562696__b997915334412">on</strong></p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001460562696__section143001361527"><h4 class="sectiontitle">enable_sonic_hashjoin</h4><p id="EN-US_TOPIC_0000001460562696__p93031036175211"><strong id="EN-US_TOPIC_0000001460562696__b075711379501">Parameter description</strong>: Specifies whether to use the Hash Join operator for column-oriented hash table design when certain constraints are met.</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p1224665586"><strong id="EN-US_TOPIC_0000001460562696__b4836132314714">Type</strong>: USERSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p13031536195213"><strong id="EN-US_TOPIC_0000001460562696__b89462318493">Value range</strong>: Boolean</p>
|
||
<ul id="EN-US_TOPIC_0000001460562696__ul33081636185217"><li id="EN-US_TOPIC_0000001460562696__li2309173635217"><strong id="EN-US_TOPIC_0000001460562696__b8217633174913">on</strong> indicates that the Hash Join operator is used for column-oriented hash table design when certain constraints are met.</li><li id="EN-US_TOPIC_0000001460562696__li1231419363528"><strong id="EN-US_TOPIC_0000001460562696__b1342382011514">off</strong> indicates that the Hash Join operator is not used for column-oriented hash table design.</li></ul>
|
||
<div class="note" id="EN-US_TOPIC_0000001460562696__note1331683645212"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001460562696__ul1907322335"><li id="EN-US_TOPIC_0000001460562696__li390714213330">Currently, the parameter can be used only for Inner Join.</li><li id="EN-US_TOPIC_0000001460562696__li790712133313">If <strong id="EN-US_TOPIC_0000001460562696__b29503106529">enable_sonic_hashjoin</strong> is enabled, the memory usage of the Hash Inner operator can be reduced. However, in scenarios where the code generation technology can significantly improve performance, the performance of the operator may deteriorate.</li><li id="EN-US_TOPIC_0000001460562696__li17530131273517">If <strong id="EN-US_TOPIC_0000001460562696__b1056416129111">enable_sonic_hashjoin</strong> is set to <strong id="EN-US_TOPIC_0000001460562696__b356518124116">on</strong>, when certain constraints are met, the hash join operator designed for column-oriented hash tables is used and its name is displayed as <strong id="EN-US_TOPIC_0000001460562696__b1756814121417">Sonic Hash Join</strong> in the output of the Explain Analyze/Performance operation. When the constraints are not met, the operator name is displayed as <strong id="EN-US_TOPIC_0000001460562696__b1756915127120">Hash Join</strong>.</li></ul>
|
||
</div></div>
|
||
<p id="EN-US_TOPIC_0000001460562696__p1532043617527"><strong id="EN-US_TOPIC_0000001460562696__b437932812507">Default value</strong>: <strong id="EN-US_TOPIC_0000001460562696__b153811128205019">on</strong></p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001460562696__section478342018180"><h4 class="sectiontitle">enable_sonic_optspill</h4><p id="EN-US_TOPIC_0000001460562696__p9783112020182"><strong id="EN-US_TOPIC_0000001460562696__b1272311406363">Parameter description</strong>: Specifies whether to optimize the number of hash join or hash agg files spilled to disks in the sonic scenario. This parameter takes effect only when <strong id="EN-US_TOPIC_0000001460562696__b15582054123710">enable_sonic_hashjoin</strong> or <strong id="EN-US_TOPIC_0000001460562696__b14558185416375">enable_sonic_hashagg</strong> is enabled.</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p5783132013183"><strong id="EN-US_TOPIC_0000001460562696__b195458107387">Type</strong>: USERSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p978312001811"><strong id="EN-US_TOPIC_0000001460562696__b1873101515385">Value range</strong>: Boolean</p>
|
||
<ul id="EN-US_TOPIC_0000001460562696__ul19784202016183"><li id="EN-US_TOPIC_0000001460562696__li8784162061816"><strong id="EN-US_TOPIC_0000001460562696__b16376101913816">on</strong> indicates that the number of files spilled to disks is optimized.</li><li id="EN-US_TOPIC_0000001460562696__li14784162015185"><strong id="EN-US_TOPIC_0000001460562696__b9634113273810">off</strong> indicates that the number of files spilled to disks is not optimized.</li></ul>
|
||
<div class="note" id="EN-US_TOPIC_0000001460562696__note1678432081810"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001460562696__p1045630115219">For the hash join or hash agg operator that meets the sonic criteria, if this parameter is set to <strong id="EN-US_TOPIC_0000001460562696__b157511616124016">off</strong>, one file is spilled to disks for each column. If this parameter is set to <strong id="EN-US_TOPIC_0000001460562696__b142932139194">on</strong> and the data types of different columns are similar, only one file (a maximum of five files) will be spilled to disks.</p>
|
||
</div></div>
|
||
<p id="EN-US_TOPIC_0000001460562696__p14784620141813"><strong id="EN-US_TOPIC_0000001460562696__b11486174633813">Default value</strong>: <strong id="EN-US_TOPIC_0000001460562696__b54862466388">on</strong></p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001460562696__section1722911129113"><h4 class="sectiontitle">expand_hashtable_ratio</h4><p id="EN-US_TOPIC_0000001460562696__p10229712101110"><strong id="EN-US_TOPIC_0000001460562696__b299418711241">Parameter description</strong>: Specifies the expansion ratio used to resize the hash table during the execution of the Hash Agg and Hash Join operators.</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p1322915121118"><strong id="EN-US_TOPIC_0000001460562696__b196261120258">Type</strong>: USERSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p12229161281118"><strong id="EN-US_TOPIC_0000001460562696__b8249534194319">Value range</strong>: a floating point number of 0 or ranging from 0.5 to 10</p>
|
||
<div class="note" id="EN-US_TOPIC_0000001460562696__note6230121215112"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001460562696__ul182301412201118"><li id="EN-US_TOPIC_0000001460562696__li16230191251116">Value <strong id="EN-US_TOPIC_0000001460562696__b9672748142613">0</strong> indicates that the hash table is adaptively expanded based on the current memory size.</li><li id="EN-US_TOPIC_0000001460562696__li182031320121714">The value ranging from 0.5 to 10 indicates the multiple used to expand the hash table. Generally, a larger hash table delivers better performance but occupies more memory space. If the memory space is insufficient, data may be spilled to disks in advance, causing performance deterioration.</li></ul>
|
||
</div></div>
|
||
<p id="EN-US_TOPIC_0000001460562696__p132303121112"><strong id="EN-US_TOPIC_0000001460562696__b2014114218313">Default value</strong>: <strong id="EN-US_TOPIC_0000001460562696__b71480425315">0</strong></p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001460562696__section12723161719355"><h4 class="sectiontitle">plan_cache_mode</h4><p id="EN-US_TOPIC_0000001460562696__p17723121710352"><strong id="EN-US_TOPIC_0000001460562696__b01571426162610">Parameter description</strong>: Specifies the policy for generating an execution plan in the <strong id="EN-US_TOPIC_0000001460562696__b2667839152614">prepare</strong> statement.</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p0743131514816"><strong id="EN-US_TOPIC_0000001460562696__b1620142484720">Type</strong>: USERSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p1872319177358"><strong id="EN-US_TOPIC_0000001460562696__en-us_topic_0059778091_en-us_topic_0058967545_b41199681">Value range</strong>: enumerated values</p>
|
||
<ul id="EN-US_TOPIC_0000001460562696__ul1872341711356"><li id="EN-US_TOPIC_0000001460562696__li572391743511"><strong id="EN-US_TOPIC_0000001460562696__b1855614182912">auto</strong> indicates that the <strong id="EN-US_TOPIC_0000001460562696__b51086242296">custom plan</strong> or <strong id="EN-US_TOPIC_0000001460562696__b145811128132911">generic plan</strong> is selected by default.</li><li id="EN-US_TOPIC_0000001460562696__li18723151713357"><strong id="EN-US_TOPIC_0000001460562696__b94491429291">force_generic_plan</strong> indicates that the <strong id="EN-US_TOPIC_0000001460562696__b156981047192912">generic plan</strong> is forcibly used.</li><li id="EN-US_TOPIC_0000001460562696__li16306115104215"><strong id="EN-US_TOPIC_0000001460562696__b172021158132913">force_custom_plan</strong> indicates that the <strong id="EN-US_TOPIC_0000001460562696__b1729317319309">custom plan</strong> is forcibly used.</li></ul>
|
||
<div class="note" id="EN-US_TOPIC_0000001460562696__note37231017123517"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001460562696__ul107232017133512"><li id="EN-US_TOPIC_0000001460562696__li2072320175355">This parameter is valid only for the <strong id="EN-US_TOPIC_0000001460562696__b1562310176304">prepare</strong> statement. It is used when the parameterized field in the <strong id="EN-US_TOPIC_0000001460562696__b1258632923020">prepare</strong> statement has severe data skew.</li><li id="EN-US_TOPIC_0000001460562696__li122868287116"><strong id="EN-US_TOPIC_0000001460562696__b4942851103015">custom plan</strong> is a plan generated after you run a <strong id="EN-US_TOPIC_0000001460562696__b121563110319">prepare</strong> statement where parameters in the execute statement is embedded in the <strong id="EN-US_TOPIC_0000001460562696__b847711011301">prepare</strong> statement. The <strong id="EN-US_TOPIC_0000001460562696__b384941123216">custom plan</strong> generates a plan based on specific parameters in the execute statement. This scheme generates a preferred plan based on specific parameters each time and has good execution performance. The disadvantage is that the plan needs to be regenerated before each execution, resulting in a large amount of repeated optimizer overhead.</li><li id="EN-US_TOPIC_0000001460562696__li1856213436581"><strong id="EN-US_TOPIC_0000001460562696__b14201124273518">generic plan</strong> is a plan generated for the <strong id="EN-US_TOPIC_0000001460562696__b033835813352">prepare</strong> statement. The plan policy binds parameters to the plan when you run the execute statement and execute the plan. The advantage of this solution is that repeated optimizer overheads can be avoided in each execution. The disadvantage is that the plan may not be optimal when data skew occurs for the bound parameter field. When some bound parameters are used, the plan execution performance is poor.</li></ul>
|
||
</div></div>
|
||
<p id="EN-US_TOPIC_0000001460562696__p10724181710353"><strong id="EN-US_TOPIC_0000001460562696__b4605672135217_4">Default value</strong>: <strong id="EN-US_TOPIC_0000001460562696__b842352706171854">auto</strong></p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001460562696__section1432019171045"><h4 class="sectiontitle">wlm_query_accelerate</h4><p id="EN-US_TOPIC_0000001460562696__p23201017944"><strong id="EN-US_TOPIC_0000001460562696__b1290593963416">Parameter description</strong>: Specifies whether the query needs to be accelerated when short query acceleration is enabled.</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p83202171944"><strong id="EN-US_TOPIC_0000001460562696__b11101147123410">Type</strong>: USERSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p132013171348"><strong id="EN-US_TOPIC_0000001460562696__b35751844115915">Value range</strong>: an integer ranging from <strong id="EN-US_TOPIC_0000001460562696__b250285423411">–1</strong> to <strong id="EN-US_TOPIC_0000001460562696__b14215253715">1</strong></p>
|
||
<ul id="EN-US_TOPIC_0000001460562696__ul832041719414"><li id="EN-US_TOPIC_0000001460562696__li2320111711414"><strong id="EN-US_TOPIC_0000001460562696__b1484717414356">-1</strong>: indicates that short queries are controlled by the fast lane, and the long queries are controlled by the slow lane.</li><li id="EN-US_TOPIC_0000001460562696__li2320417943"><strong id="EN-US_TOPIC_0000001460562696__b10721155653510">0</strong>: indicates that queries are not accelerated. Both short and long queries are controlled by the slow lane.</li><li id="EN-US_TOPIC_0000001460562696__li432010179417"><strong id="EN-US_TOPIC_0000001460562696__b26331127113618">1</strong>: indicates that queries are accelerated. Both short queries and long queries are controlled by the fast lane.</li></ul>
|
||
<p id="EN-US_TOPIC_0000001460562696__p73218171347"><strong id="EN-US_TOPIC_0000001460562696__b246610317372">Default value</strong>: <strong id="EN-US_TOPIC_0000001460562696__b26622515378">–1</strong></p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001460562696__section53471720163714"><h4 class="sectiontitle">show_unshippable_warning</h4><p id="EN-US_TOPIC_0000001460562696__p179715004520"><strong id="EN-US_TOPIC_0000001460562696__b193551732143217">Parameter description</strong>: Specifies whether to print the alarm for the statement pushdown failure to the client.</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p6347132011371"><strong id="EN-US_TOPIC_0000001460562696__b1591411073220">Type</strong>: USERSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p734720202378"><strong id="EN-US_TOPIC_0000001460562696__b2145111273210">Value range</strong>: Boolean</p>
|
||
<ul id="EN-US_TOPIC_0000001460562696__ul14347192018375"><li id="EN-US_TOPIC_0000001460562696__li1934752011376"><strong id="EN-US_TOPIC_0000001460562696__b198018486346">on</strong>: Records the reason why the statement cannot be pushed down in a WARNING log and prints the log to the client.</li><li id="EN-US_TOPIC_0000001460562696__li17347220113711"><strong id="EN-US_TOPIC_0000001460562696__b1970934153610">off</strong>: Logs the reason why the statement cannot be pushed down only.</li></ul>
|
||
<p id="EN-US_TOPIC_0000001460562696__p534715209373"><strong id="EN-US_TOPIC_0000001460562696__b5602132515320">Default value</strong>: <strong id="EN-US_TOPIC_0000001460562696__b176086257322">off</strong></p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001460562696__section1438552224514"><h4 class="sectiontitle">hashjoin_spill_strategy</h4><p id="EN-US_TOPIC_0000001460562696__p19539122374516"><strong id="EN-US_TOPIC_0000001460562696__b1457112117199">Parameter description</strong>: specifies the hash join policy for spilling data to disks. This feature is supported in 8.1.2 or later.</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p185394230451"><strong id="EN-US_TOPIC_0000001460562696__b2101480574">Type</strong>: USERSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p3539182344511"><strong id="EN-US_TOPIC_0000001460562696__b14823046113019">Value range</strong>: The value is an integer ranging from 0 to 6.</p>
|
||
<ul id="EN-US_TOPIC_0000001460562696__ul1453932354519"><li id="EN-US_TOPIC_0000001460562696__li14539172324515"><strong id="EN-US_TOPIC_0000001460562696__b9836161013913">0</strong>: If an inner table is too large to be fully stored in database memory, the table will be partitioned. If the table cannot be further partitioned and there is not enough memory for storing it, the system will check whether the foreign table can be stored in memory and be used to create a hash table. If the foreign table can be stored in the memory and used to create a hash table, HashJoin will be performed. Otherwise, NestLoop will be performed.</li><li id="EN-US_TOPIC_0000001460562696__li25404238455"><strong id="EN-US_TOPIC_0000001460562696__b164186198166">1</strong>: If an inner table is too large to be fully stored in database memory, the table will be partitioned. If the table cannot be further partitioned and there is still not enough memory for storing it, the system will check whether the foreign table can be stored in memory and be used to create a hash table. If both the inner and outer tables are large, a hash join is forcibly performed.</li><li id="EN-US_TOPIC_0000001460562696__li75401323124515"><strong id="EN-US_TOPIC_0000001460562696__b26961243202317">2</strong>: If the size of the inner table is large and cannot be partitioned after data is spilled to disks for multiple times, HashJoin will be forcibly performed.</li><li id="EN-US_TOPIC_0000001460562696__li81274251505"><strong id="EN-US_TOPIC_0000001460562696__b199311546202318">3</strong>: If the size of the inner table is large and cannot be partitioned after data is spilled to disks for multiple times, the system attempts to place the outer table in the available memory of the database to create a hash table. If both the inner and outer tables are large, an error is reported.</li><li id="EN-US_TOPIC_0000001460562696__li173861227115020"><strong id="EN-US_TOPIC_0000001460562696__b67917226242">4</strong>: If the size of the inner table is large and cannot be partitioned after data is spilled to disks for multiple times, an error is reported.</li><li id="EN-US_TOPIC_0000001460562696__li1297517361515"><strong id="EN-US_TOPIC_0000001460562696__b207931454111714">5</strong>: If the inner table is large and cannot be fully stored in database memory, and the foreign table can be fully stored in memory, the foreign table will be used to create a hash table and perform HashJoin. If the foreign table cannot be fully stored in memory, it will be partitioned until the inner and foreign tables cannot be further partitioned. Then, NestLoop will be performed.</li><li id="EN-US_TOPIC_0000001460562696__li11707162418457"><strong id="EN-US_TOPIC_0000001460562696__b9669545173512">6</strong>: If the inner table is large and cannot be fully stored in database memory, and the foreign table can be fully stored in memory, the foreign table will be used to create a hash table and perform HashJoin. If the foreign table cannot be fully stored in memory, it will be partitioned until the inner and foreign tables cannot be further partitioned. Then, HashJoin will be forcibly performed.</li></ul>
|
||
<div class="note" id="EN-US_TOPIC_0000001460562696__note1254032318458"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001460562696__ul8540122334510"><li id="EN-US_TOPIC_0000001460562696__li1954010235457">This parameter is valid only for a vectorized hash join operator.</li><li id="EN-US_TOPIC_0000001460562696__li15310640145816">If the number of distinct values is small and the data volume is large, data may fail to be flushed to disks. As a result, the memory usage is too high and the memory is out of control. If this parameter is set to <strong id="EN-US_TOPIC_0000001460562696__b177112414300">0</strong>, the system attempts to swap the inner and outer tables or perform a nested loop join to prevent this problem. However, a nested loop join may deteriorate performance in some scenarios. In this case, this parameter can be set to <strong id="EN-US_TOPIC_0000001460562696__b695216211379">1</strong>, <strong id="EN-US_TOPIC_0000001460562696__b384723173715">2</strong>, or <strong id="EN-US_TOPIC_0000001460562696__b1213716248378">6</strong> to forcibly perform HashJoin.</li><li id="EN-US_TOPIC_0000001460562696__li17989808372">The value <strong id="EN-US_TOPIC_0000001460562696__b177822433219">0</strong> does not take effect for a vectorized full join, and the behavior is the same as that of the value <strong id="EN-US_TOPIC_0000001460562696__b141931844143215">1</strong>. The system attempts to create a hash table only for the outer table and does not perform a nested loop join.</li><li id="EN-US_TOPIC_0000001460562696__li113319540713">If the inner table is too large to be fully stored in memory, but the foreign table can be stored in memory, you are advised to set this parameter to <strong id="EN-US_TOPIC_0000001460562696__b170411383371">5</strong> or <strong id="EN-US_TOPIC_0000001460562696__b108161439163720">6</strong> rather than <strong id="EN-US_TOPIC_0000001460562696__b38238447376">0</strong> or <strong id="EN-US_TOPIC_0000001460562696__b16907194623717">1</strong>, directly performing Hashjoin on the foreign table without multiple rounds of partitioning and spill to disk. If a foreign table contains only a small amount of distinct data, creating a hash table using the foreign table may cause performance deterioration. In this case, you can change the value of this parameter to <strong id="EN-US_TOPIC_0000001460562696__b17376423134312">0</strong> or <strong id="EN-US_TOPIC_0000001460562696__b5491102411432">1</strong>.</li></ul>
|
||
</div></div>
|
||
<p id="EN-US_TOPIC_0000001460562696__p3540192324516"><strong id="EN-US_TOPIC_0000001460562696__b127877610">Default value</strong>: <strong id="EN-US_TOPIC_0000001460562696__b1811796951">0</strong></p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001460562696__section2109113218191"><h4 class="sectiontitle">max_streams_per_query</h4><p id="EN-US_TOPIC_0000001460562696__p72482015192010"><strong id="EN-US_TOPIC_0000001460562696__b1062488124215">Parameter description</strong>: Controls the number of Stream nodes in a query plan. (This parameter is supported only in 8.1.1 and later cluster versions.)</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p7475184073417"><strong id="EN-US_TOPIC_0000001460562696__b245474668">Type</strong>: SUSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p747516404348"><strong id="EN-US_TOPIC_0000001460562696__b73182020134210">Value range</strong>: an integer ranging from –1 to 10000.</p>
|
||
<ul id="EN-US_TOPIC_0000001460562696__ul44751140153417"><li id="EN-US_TOPIC_0000001460562696__li6475240163413"><strong id="EN-US_TOPIC_0000001460562696__b1972117523425">-1</strong> indicates that the number of Stream nodes in the query plan is not limited.</li><li id="EN-US_TOPIC_0000001460562696__li1247524043414">A value within the range <strong id="EN-US_TOPIC_0000001460562696__b954421310437">0</strong> to <strong id="EN-US_TOPIC_0000001460562696__b687161811439">10000</strong> indicates that when the number of Stream nodes in the query plan exceeds the specified value, an error is reported and the query plan will not be executed.</li></ul>
|
||
<div class="note" id="EN-US_TOPIC_0000001460562696__note1647615400342"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001460562696__ul947684043412"><li id="EN-US_TOPIC_0000001460562696__li1047616408342">This parameter controls only the Stream nodes on DNs and does not control the Gather nodes on the CN.</li><li id="EN-US_TOPIC_0000001460562696__li2080717269434">This parameter does not affect the EXPLAIN query plan, but affects EXPLAIN ANALYZE and EXPLAIN PERFORMANCE.</li></ul>
|
||
</div></div>
|
||
<p id="EN-US_TOPIC_0000001460562696__p4476140153411"><strong id="EN-US_TOPIC_0000001460562696__b35986345549">Default value</strong>: <strong id="EN-US_TOPIC_0000001460562696__b860573485413">–1</strong></p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001460562696__section12291424193416"><h4 class="sectiontitle">enable_agg_limit_opt</h4><p id="EN-US_TOPIC_0000001460562696__p85201847113420"><strong id="EN-US_TOPIC_0000001460562696__b4203174694318">Parameter description</strong>: Specifies whether to optimize <strong id="EN-US_TOPIC_0000001460562696__b1020354624314">select distinct col from table limit N</strong>. This parameter is valid only if N is less than 16,384. <strong id="EN-US_TOPIC_0000001460562696__b620354615431">table</strong> indicates a column-store table. This parameter is supported only by clusters of version 8.2.0.101 or later.</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p4388124373419"><strong id="EN-US_TOPIC_0000001460562696__b1972198073">Type</strong>: USERSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p138904315348"><strong id="EN-US_TOPIC_0000001460562696__b1493528175">Value range</strong>: Boolean</p>
|
||
<ul id="EN-US_TOPIC_0000001460562696__ul53890439349"><li id="EN-US_TOPIC_0000001460562696__li2887122473515"><strong id="EN-US_TOPIC_0000001460562696__b03661729131610">on</strong> indicates that the optimization is enabled. After this function is enabled, query results are from different DNs, and you do not need to create a full hash table on each DN, significantly improving query performance.</li><li id="EN-US_TOPIC_0000001460562696__li238944311349"><p id="EN-US_TOPIC_0000001460562696__p556218153410"><a name="EN-US_TOPIC_0000001460562696__li238944311349"></a><a name="li238944311349"></a><strong id="EN-US_TOPIC_0000001460562696__b697585042102151">off</strong> indicates that the optimization is disabled.</p>
|
||
</li></ul>
|
||
<p id="EN-US_TOPIC_0000001460562696__p1238914363413"><strong id="EN-US_TOPIC_0000001460562696__b405030130">Default value</strong>: <strong id="EN-US_TOPIC_0000001460562696__b347196766">off</strong></p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001460562696__section47107713518"><h4 class="sectiontitle">stream_ctescan_pred_threshold</h4><p id="EN-US_TOPIC_0000001460562696__p197106735113"><strong id="EN-US_TOPIC_0000001460562696__b31581410161">Parameter description</strong>: minimum number of filter criteria contained in a CTE when <strong id="EN-US_TOPIC_0000001460562696__b1072220505162">enable_stream_ctescan</strong> is set to <strong id="EN-US_TOPIC_0000001460562696__b4774927101912">on</strong> and the CTE contains only a single table filtering condition. If the value is greater than or equal to the value of this parameter, the share scan mode is used. If the value is less than the value of this parameter, the inline mode is used. This parameter is supported only by clusters of version 8.2.1 or later.</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p271010785110"><strong id="EN-US_TOPIC_0000001460562696__b474792535">Type</strong>: SUSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p77101071518"><strong id="EN-US_TOPIC_0000001460562696__b3857004">Value range</strong>: an integer ranging from <strong id="EN-US_TOPIC_0000001460562696__b1456800255">0</strong> to <strong id="EN-US_TOPIC_0000001460562696__b289820014">INT_MAX</strong></p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p171118712515"><strong id="EN-US_TOPIC_0000001460562696__b1828937348102151">Default value</strong>: <strong id="EN-US_TOPIC_0000001460562696__b2124581091102151">2</strong></p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001460562696__section27371911515"><h4 class="sectiontitle">stream_ctescan_max_estimate_mem</h4><p id="EN-US_TOPIC_0000001460562696__p17376955110"><strong id="EN-US_TOPIC_0000001460562696__b52111536122015">Parameter description</strong>: maximum estimated memory value of the CTE when <strong id="EN-US_TOPIC_0000001460562696__b9577954182016">enable_stream_ctescan</strong> is set to <strong id="EN-US_TOPIC_0000001460562696__b1371595914202">on</strong>. This parameter must be used together with <strong id="EN-US_TOPIC_0000001460562696__b0778982215">stream_ctescan_refcount_threshold</strong>. If the estimated memory is greater than the value of <strong id="EN-US_TOPIC_0000001460562696__b1128249211">stream_ctescan_max_estimate_mem</strong> and the number of references is less than the value of <strong id="EN-US_TOPIC_0000001460562696__b843015451219">stream_ctescan_refcount_threshold</strong>, the inline mode is used. Otherwise, the sharescan mode is used. This parameter is supported only by clusters of version 8.2.1 or later.</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p147377913510"><strong id="EN-US_TOPIC_0000001460562696__b105811180">Type</strong>: SUSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p1073779185113"><strong id="EN-US_TOPIC_0000001460562696__b188276032215">Value range</strong>: an integer ranging from 32 x 1024 (32 MB) to INT_MAX, in KB.</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p127381905113"><strong id="EN-US_TOPIC_0000001460562696__b530074878102151">Default value</strong>: <strong id="EN-US_TOPIC_0000001460562696__b1546504758102151">256 MB</strong></p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001460562696__section85981711155115"><h4 class="sectiontitle">stream_ctescan_refcount_threshold</h4><p id="EN-US_TOPIC_0000001460562696__p659820112519"><strong id="EN-US_TOPIC_0000001460562696__b315105532218">Parameter description</strong>: maximum number of times that the CTE can be referenced when <strong id="EN-US_TOPIC_0000001460562696__b61575552211">enable_stream_ctescan</strong> is set to <strong id="EN-US_TOPIC_0000001460562696__b2016105582217">on</strong>. This parameter must be used together with <strong id="EN-US_TOPIC_0000001460562696__b2035232142316">stream_ctescan_max_estimate_mem</strong>. If the estimated memory is greater than the value of <strong id="EN-US_TOPIC_0000001460562696__b896320353230">stream_ctescan_max_estimate_mem</strong> and the number of references is less than the value of <strong id="EN-US_TOPIC_0000001460562696__b89633359230">stream_ctescan_refcount_threshold</strong>, the inline mode is used. Otherwise, the sharescan mode is used. This parameter is supported only by clusters of version 8.2.1 or later.</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p205986110512"><strong id="EN-US_TOPIC_0000001460562696__b423504270">Type</strong>: SUSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p1959815113513"><strong id="EN-US_TOPIC_0000001460562696__b14491101245">Value range</strong>: an integer ranging from 0 to INT_MAX</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p205991114513"><strong id="EN-US_TOPIC_0000001460562696__b459919112515">Default value</strong>: 4</p>
|
||
<div class="note" id="EN-US_TOPIC_0000001460562696__note16949342922"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001460562696__p14949442525">This parameter takes effect only when the value is greater than 0. When the value is 0, only <strong id="EN-US_TOPIC_0000001460562696__b1447173352415">stream_ctescan_max_estimate_mem</strong> is used to control the inline behavior.</p>
|
||
</div></div>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001460562696__section2330313185118"><h4 class="sectiontitle">inlist_rough_check_threshold</h4><p id="EN-US_TOPIC_0000001460562696__p5330191355116"><strong id="EN-US_TOPIC_0000001460562696__b1670965878102151">Parameter description</strong>: Specifies the maximum number of values in the <strong id="EN-US_TOPIC_0000001460562696__b1676843068102151">IN</strong> condition when <strong id="EN-US_TOPIC_0000001460562696__b1418934692102151">enable_csqual_pushdown</strong> is enabled and the filter criterion is <strong id="EN-US_TOPIC_0000001460562696__b406184379102151">IN</strong> for rough check pushdown. If the number of values in the <strong id="EN-US_TOPIC_0000001460562696__b1952125136102151">IN</strong> filter condition exceeds the value of this parameter, the maximum and minimum values in the <strong id="EN-US_TOPIC_0000001460562696__b1287033783102151">IN</strong> filter condition are used for pushdown. This parameter is supported only by clusters of version 8.2.0.101 or later.</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p14330101314515"><strong id="EN-US_TOPIC_0000001460562696__b1852185160">Type</strong>: SUSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p73302013165117"><strong id="EN-US_TOPIC_0000001460562696__b9330191355112">Value range</strong>: an integer ranging from 0 to 10000</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p12330171315115"><strong id="EN-US_TOPIC_0000001460562696__b1910250665">Default value</strong>: <strong id="EN-US_TOPIC_0000001460562696__b1071990627">100</strong></p>
|
||
<div class="note" id="EN-US_TOPIC_0000001460562696__note1980081141117"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001460562696__p167997116110">If the <strong id="EN-US_TOPIC_0000001460562696__b268882133102151">IN</strong> condition is executed on the only distribution column of a table, values can be filtered on DNs. In this case, the maximum number of values in the <strong id="EN-US_TOPIC_0000001460562696__b129678877102151">IN</strong> condition is <strong id="EN-US_TOPIC_0000001460562696__b1391816310102151">inlist_rough_check_threshold</strong> multiplied by the number of DNs.</p>
|
||
</div></div>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001460562696__section199373449380"><h4 class="sectiontitle">enable_array_optimization</h4><p id="EN-US_TOPIC_0000001460562696__p10937154483818"><strong id="EN-US_TOPIC_0000001460562696__b13621156182412">Parameter description</strong>: whether to split the Array type generated by the IN, ANY, or ALL condition into common expressions for execution. This parameter will support multiple optimizations such as vectorized execution, rough check pruning, and partition pruning. This parameter is supported only by clusters of version 8.2.1 or later.</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p1293744418389"><strong id="EN-US_TOPIC_0000001460562696__b1533635060">Type</strong>: SUSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p108681314194211"><strong id="EN-US_TOPIC_0000001460562696__b846680697">Value range</strong>: Boolean</p>
|
||
<ul id="EN-US_TOPIC_0000001460562696__ul18868141434217"><li id="EN-US_TOPIC_0000001460562696__li168681141426"><strong id="EN-US_TOPIC_0000001460562696__b1493413358271">on</strong> indicates that expressions of the Array type are split for optimization.</li><li id="EN-US_TOPIC_0000001460562696__li10868111412426"><strong id="EN-US_TOPIC_0000001460562696__b188326585278">off</strong> indicates that expressions of the Array type are not split for optimization.</li></ul>
|
||
<p id="EN-US_TOPIC_0000001460562696__p3868101434216"><strong id="EN-US_TOPIC_0000001460562696__b1330475265">Default value</strong>: <strong id="EN-US_TOPIC_0000001460562696__b1549512089">on</strong></p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001460562696__section896203814357"><h4 class="sectiontitle">max_skew_num</h4><p id="EN-US_TOPIC_0000001460562696__p12962938203511"><strong id="EN-US_TOPIC_0000001460562696__b515591722813">Parameter description</strong>: controls the number of skew values allowed by the optimizer for redistribution optimization. This parameter is supported only by clusters of version 8.2.1 or later.</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p14962238103519"><strong id="EN-US_TOPIC_0000001460562696__b955906863">Type</strong>: SUSET</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p39628383356"><strong id="EN-US_TOPIC_0000001460562696__b189653610292">Value range</strong>: an integer ranging from 0 to INT_MAX</p>
|
||
<p id="EN-US_TOPIC_0000001460562696__p15962143813355"><strong id="EN-US_TOPIC_0000001460562696__b1139043010102151">Default value</strong>: <strong id="EN-US_TOPIC_0000001460562696__b405175952102151">10</strong></p>
|
||
</div>
|
||
</div>
|
||
<div>
|
||
<div class="familylinks">
|
||
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0908.html">Query Planning</a></div>
|
||
</div>
|
||
</div>
|
||
|