doc-exports/docs/dws/dev/dws_04_1027.html
Lu, Huayi e6fa411af0 DWS DEV 830.201 version
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>
2024-05-16 07:24:04 +00:00

29 lines
3.4 KiB
HTML

<a name="EN-US_TOPIC_0000001809519840"></a><a name="EN-US_TOPIC_0000001809519840"></a>
<h1 class="topictitle1">Hybrid Data Warehouse Functions</h1>
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001809519840__en-us_topic_0000001490854057_section111833513559"><h4 class="sectiontitle">hstore_light_merge(rel_name text)</h4><p id="EN-US_TOPIC_0000001809519840__en-us_topic_0000001490854057_p1570053018110">Description: This function is used to manually perform lightweight cleanup on HStore tables and holds the level-3 lock of the target table.</p>
<p id="EN-US_TOPIC_0000001809519840__en-us_topic_0000001490854057_p136441319310">Return type: int</p>
<p id="EN-US_TOPIC_0000001809519840__en-us_topic_0000001490854057_p1868611814316">Example:</p>
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001809519840__en-us_topic_0000001490854057_s6f2a8091f7c749d2b4794a0c2b847f25"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SELECT</span><span class="w"> </span><span class="n">hstore_light_merge</span><span class="p">(</span><span class="s1">'reason_select'</span><span class="p">);</span>
</pre></div></td></tr></table></div>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000001809519840__en-us_topic_0000001490854057_section299316461039"><h4 class="sectiontitle">hstore_full_merge(rel_name text)</h4><p id="EN-US_TOPIC_0000001809519840__en-us_topic_0000001490854057_p29931946036">Description: This function is used to manually perform full cleanup on HStore tables.</p>
<p id="EN-US_TOPIC_0000001809519840__en-us_topic_0000001490854057_p299334617312">Return type: int</p>
<div class="notice" id="EN-US_TOPIC_0000001809519840__en-us_topic_0000001490854057_note7302124416519"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><ul id="EN-US_TOPIC_0000001809519840__en-us_topic_0000001490854057_ul57954194615"><li id="EN-US_TOPIC_0000001809519840__en-us_topic_0000001490854057_li187955144617">This operation forcibly merges all the visible operations of the delta table to the primary table, and then creates an empty delta table. During this period, this operation holds the level-8 lock of the table.</li><li id="EN-US_TOPIC_0000001809519840__en-us_topic_0000001490854057_li12795101164615">The duration of this operation depends on the amount of data in the delta table. You must enable the HStore clearing thread to ensure unnecessary data in the HStore table is cleared in a timely manner.</li></ul>
</div></div>
<p id="EN-US_TOPIC_0000001809519840__en-us_topic_0000001490854057_p1699310461333">Example:</p>
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001809519840__en-us_topic_0000001490854057_screen89931546336"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SELECT</span><span class="w"> </span><span class="n">hstore_full_merge</span><span class="p">(</span><span class="s1">'reason_select'</span><span class="p">);</span>
</pre></div></td></tr></table></div>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_1023.html">Hybrid Data Warehouse</a></div>
</div>
</div>