forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Yang, Tong <yangtong2@huawei.com> Co-committed-by: Yang, Tong <yangtong2@huawei.com>
75 lines
9.4 KiB
HTML
75 lines
9.4 KiB
HTML
<a name="mrs_01_24181"></a><a name="mrs_01_24181"></a>
|
|
|
|
<h1 class="topictitle1">Modifying the CTE Configuration</h1>
|
|
<div id="body32001227"><div class="section" id="mrs_01_24181__en-us_topic_0000001219231083_section56435962313"><h4 class="sectiontitle">Scenario</h4><p id="mrs_01_24181__en-us_topic_0000001219231083_p66621158105717">If a table or common table expression (CTE) contained in a query appears multiple times and has the same projection and filter, you can enable the CTE reuse function to cache data in memory. In this way, you do not need to read data from disks for multiple times, reducing the time required for query execution.</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_24181__en-us_topic_0000001219231083_section8577201410371"><h4 class="sectiontitle">Procedure</h4><ol id="mrs_01_24181__en-us_topic_0000001219231083_ol92014168201"><li id="mrs_01_24181__en-us_topic_0000001219231083_li2020141613204"><span>Log in to FusionInsight Manager.</span></li><li id="mrs_01_24181__en-us_topic_0000001219231083_li8231162820207"><span>Choose <strong id="mrs_01_24181__en-us_topic_0000001219231083_b1934445818547">Cluster</strong> > <strong id="mrs_01_24181__en-us_topic_0000001219231083_b20104225519">Services</strong> > <strong id="mrs_01_24181__en-us_topic_0000001219231083_b165141815115519"><span id="mrs_01_24181__en-us_topic_0000001219231083_text189298424410">HetuEngine</span></strong> > <strong id="mrs_01_24181__en-us_topic_0000001219231083_b10240201835520">Configurations</strong> > <strong id="mrs_01_24181__en-us_topic_0000001219231083_b856122185511">All Configurations</strong> and configure related parameters by referring to <a href="#mrs_01_24181__en-us_topic_0000001219231083_table1201657173018">Table 1</a>.</span><p>
|
|
<div class="tablenoborder"><a name="mrs_01_24181__en-us_topic_0000001219231083_table1201657173018"></a><a name="en-us_topic_0000001219231083_table1201657173018"></a><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_24181__en-us_topic_0000001219231083_table1201657173018" frame="border" border="1" rules="all"><caption><b>Table 1 </b>CTE configuration parameters</caption><thead align="left"><tr id="mrs_01_24181__en-us_topic_0000001219231083_row720113576306"><th align="left" class="cellrowborder" valign="top" width="28.51%" id="mcps1.3.2.2.2.2.1.2.6.1.1"><p id="mrs_01_24181__en-us_topic_0000001219231083_p122011257143017">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="28.51%" id="mcps1.3.2.2.2.2.1.2.6.1.2"><p id="mrs_01_24181__en-us_topic_0000001219231083_p320145723015">Description</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="7.5200000000000005%" id="mcps1.3.2.2.2.2.1.2.6.1.3"><p id="mrs_01_24181__en-us_topic_0000001219231083_p179572218164">Recommended Value</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="13.089999999999998%" id="mcps1.3.2.2.2.2.1.2.6.1.4"><p id="mrs_01_24181__en-us_topic_0000001219231083_p11201195712309">Default Value</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="22.37%" id="mcps1.3.2.2.2.2.1.2.6.1.5"><p id="mrs_01_24181__en-us_topic_0000001219231083_p43451923917">Parameter File</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="mrs_01_24181__en-us_topic_0000001219231083_row1420113573309"><td class="cellrowborder" valign="top" width="28.51%" headers="mcps1.3.2.2.2.2.1.2.6.1.1 "><p id="mrs_01_24181__en-us_topic_0000001219231083_p132011257143010">optimizer.reuse-table-scan</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.51%" headers="mcps1.3.2.2.2.2.1.2.6.1.2 "><p id="mrs_01_24181__en-us_topic_0000001219231083_p220165715306">Whether to enable the CTE table data reuse function.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="7.5200000000000005%" headers="mcps1.3.2.2.2.2.1.2.6.1.3 "><p id="mrs_01_24181__en-us_topic_0000001219231083_p1895812101611">true</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.089999999999998%" headers="mcps1.3.2.2.2.2.1.2.6.1.4 "><p id="mrs_01_24181__en-us_topic_0000001219231083_p19201857163020">false</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.37%" headers="mcps1.3.2.2.2.2.1.2.6.1.5 "><p id="mrs_01_24181__en-us_topic_0000001219231083_p27384733318"><strong id="mrs_01_24181__en-us_topic_0000001219231083_b16236204183418">coordinator.config.properties</strong> and <strong id="mrs_01_24181__en-us_topic_0000001219231083_b132913458340">worker.config.properties</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_24181__en-us_topic_0000001219231083_row147617444317"><td class="cellrowborder" valign="top" width="28.51%" headers="mcps1.3.2.2.2.2.1.2.6.1.1 "><p id="mrs_01_24181__en-us_topic_0000001219231083_p20761114194316">experimental.spill-reuse-tablescan</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.51%" headers="mcps1.3.2.2.2.2.1.2.6.1.2 "><p id="mrs_01_24181__en-us_topic_0000001219231083_p27616444312">Whether to enable the function of spilling memory to disks during tablescan reuse.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="7.5200000000000005%" headers="mcps1.3.2.2.2.2.1.2.6.1.3 "><p id="mrs_01_24181__en-us_topic_0000001219231083_p1395852112162">true</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.089999999999998%" headers="mcps1.3.2.2.2.2.1.2.6.1.4 "><p id="mrs_01_24181__en-us_topic_0000001219231083_p107611404310">false</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.37%" headers="mcps1.3.2.2.2.2.1.2.6.1.5 "><p id="mrs_01_24181__en-us_topic_0000001219231083_p173972117577"><strong id="mrs_01_24181__en-us_topic_0000001219231083_b95994714346">coordinator.config.properties</strong> and <strong id="mrs_01_24181__en-us_topic_0000001219231083_b1060647183411">worker.config.properties</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_24181__en-us_topic_0000001219231083_row935298104313"><td class="cellrowborder" valign="top" width="28.51%" headers="mcps1.3.2.2.2.2.1.2.6.1.1 "><p id="mrs_01_24181__en-us_topic_0000001219231083_p1435288114314">optimizer.cte-reuse-enabled</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.51%" headers="mcps1.3.2.2.2.2.1.2.6.1.2 "><p id="mrs_01_24181__en-us_topic_0000001219231083_p12352138124310">Whether to enable CTE reuse. If this function is enabled, CTE is executed only once irrespective of the number of times the same CTE is being used in the main query.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="7.5200000000000005%" headers="mcps1.3.2.2.2.2.1.2.6.1.3 "><p id="mrs_01_24181__en-us_topic_0000001219231083_p14958621111620">true</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.089999999999998%" headers="mcps1.3.2.2.2.2.1.2.6.1.4 "><p id="mrs_01_24181__en-us_topic_0000001219231083_p1535318811436">false</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.37%" headers="mcps1.3.2.2.2.2.1.2.6.1.5 "><p id="mrs_01_24181__en-us_topic_0000001219231083_p82861256133311"><strong id="mrs_01_24181__en-us_topic_0000001219231083_b18950947163613">coordinator.config.properties</strong> and <strong id="mrs_01_24181__en-us_topic_0000001219231083_b69511047183612">worker.config.properties</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_24181__en-us_topic_0000001219231083_row089612415470"><td class="cellrowborder" valign="top" width="28.51%" headers="mcps1.3.2.2.2.2.1.2.6.1.1 "><p id="mrs_01_24181__en-us_topic_0000001219231083_p1389617415478">dynamic-filtering-max-per-driver-size</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.51%" headers="mcps1.3.2.2.2.2.1.2.6.1.2 "><p id="mrs_01_24181__en-us_topic_0000001219231083_p208961143475">Maximum volume of data that can be collected by each driver when dynamic filtering starts.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="7.5200000000000005%" headers="mcps1.3.2.2.2.2.1.2.6.1.3 "><p id="mrs_01_24181__en-us_topic_0000001219231083_p159585219163">100MB</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.089999999999998%" headers="mcps1.3.2.2.2.2.1.2.6.1.4 "><p id="mrs_01_24181__en-us_topic_0000001219231083_p1089612419470">1MB</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.37%" headers="mcps1.3.2.2.2.2.1.2.6.1.5 "><p id="mrs_01_24181__en-us_topic_0000001219231083_p13699223419"><strong id="mrs_01_24181__en-us_topic_0000001219231083_b419024919362">coordinator.config.properties</strong> and <strong id="mrs_01_24181__en-us_topic_0000001219231083_b4190449113617">worker.config.properties</strong></p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</p></li><li id="mrs_01_24181__en-us_topic_0000001219231083_li6919115618269"><span>Click <span class="uicontrol" id="mrs_01_24181__en-us_topic_0000001219231083_en-us_topic_0254454631_uicontrol15312340979"><b>Save</b></span>.</span></li><li id="mrs_01_24181__en-us_topic_0000001219231083_li186511130292"><span>Choose <strong id="mrs_01_24181__en-us_topic_0000001219231083_b14972115253613">Cluster</strong> > <strong id="mrs_01_24181__en-us_topic_0000001219231083_b1097815214365">Services</strong> > <strong id="mrs_01_24181__en-us_topic_0000001219231083_b149781525361"><span id="mrs_01_24181__en-us_topic_0000001219231083_text4978175283612">HetuEngine</span></strong> > <strong id="mrs_01_24181__en-us_topic_0000001219231083_b697975233615">More</strong> > <strong id="mrs_01_24181__en-us_topic_0000001219231083_b2097925214367">Restart Service</strong> and enter the password to restart the <span id="mrs_01_24181__en-us_topic_0000001219231083_text697916528366">HetuEngine</span> service for the parameters to take effect.</span></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_1745.html">HetuEngine Performance Tuning</a></div>
|
|
</div>
|
|
</div>
|
|
|