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>
44 lines
5.1 KiB
HTML
44 lines
5.1 KiB
HTML
<a name="mrs_01_1436"></a><a name="mrs_01_1436"></a>
|
|
|
|
<h1 class="topictitle1">REFRESH INDEX</h1>
|
|
<div id="body8662426"><div class="section" id="mrs_01_1436__en-us_topic_0000001219230635_sd8e4ffaa71fc4034a9e2882d7c664984"><h4 class="sectiontitle">Function</h4><p id="mrs_01_1436__en-us_topic_0000001219230635_a5196137f907243259747ce96c5c8b405">This command is used to merge all segments for data files in the secondary index table.</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_1436__en-us_topic_0000001219230635_s62a70620dabc4e4eb96778f71c580e7f"><h4 class="sectiontitle">Syntax</h4><ul id="mrs_01_1436__en-us_topic_0000001219230635_ul12377733184110"><li id="mrs_01_1436__en-us_topic_0000001219230635_li437793311417"><b><span class="cmdname" id="mrs_01_1436__en-us_topic_0000001219230635_cmdname137319711407">REFRESH INDEX</span></b> <i><span class="varname" id="mrs_01_1436__en-us_topic_0000001219230635_varname13194898613">indextable_name</span></i> ON TABLE <i><span class="varname" id="mrs_01_1436__en-us_topic_0000001219230635_varname10998250124312">maintable_name</span></i><p id="mrs_01_1436__en-us_topic_0000001219230635_p5841201874417">This command is used to merge all segments for which data files are to be merged.</p>
|
|
</li><li id="mrs_01_1436__en-us_topic_0000001219230635_li195215714217"><b><span class="cmdname" id="mrs_01_1436__en-us_topic_0000001219230635_cmdname17520714217">REFRESH INDEX</span></b> <i><span class="varname" id="mrs_01_1436__en-us_topic_0000001219230635_varname105287124217">indextable_name</span></i> ON TABLE <i><span class="varname" id="mrs_01_1436__en-us_topic_0000001219230635_varname114421328195011">maintable_name</span></i> WHERE SEGMENT.ID IN (0,1,2..N)<p id="mrs_01_1436__en-us_topic_0000001219230635_p82971018124520">This command is used to merge a batch of specified segments.</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="mrs_01_1436__en-us_topic_0000001219230635_sd00174c8f3e8417ea0037e034192d094"><h4 class="sectiontitle">Parameter Description</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_1436__en-us_topic_0000001219230635_td330633f0f1a4e839893ee60997ac66b" frame="border" border="1" rules="all"><caption><b>Table 1 </b>REFRESH INDEX parameters</caption><thead align="left"><tr id="mrs_01_1436__en-us_topic_0000001219230635_r520a27852cb34cb7928beb87ae57c383"><th align="left" class="cellrowborder" valign="top" width="30.91%" id="mcps1.3.3.2.2.3.1.1"><p id="mrs_01_1436__en-us_topic_0000001219230635_a2d7b4ba625ae4e73b3de582488dc2354"><strong id="mrs_01_1436__en-us_topic_0000001219230635_b3481162081715">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="69.08999999999999%" id="mcps1.3.3.2.2.3.1.2"><p id="mrs_01_1436__en-us_topic_0000001219230635_a13d327fe75f04ee5aa721ffef31b1687"><strong id="mrs_01_1436__en-us_topic_0000001219230635_b14475422111714">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="mrs_01_1436__en-us_topic_0000001219230635_re6d39247ca1244249d7687ea10dcd0c8"><td class="cellrowborder" valign="top" width="30.91%" headers="mcps1.3.3.2.2.3.1.1 "><p id="mrs_01_1436__en-us_topic_0000001219230635_a94889b6d62534a839457c1f3f6ecc741">indextable_name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.08999999999999%" headers="mcps1.3.3.2.2.3.1.2 "><p id="mrs_01_1436__en-us_topic_0000001219230635_a9cc3bd83b1044286b7a79068ee33df1e">Name of an index table</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_1436__en-us_topic_0000001219230635_row524065865820"><td class="cellrowborder" valign="top" width="30.91%" headers="mcps1.3.3.2.2.3.1.1 "><p id="mrs_01_1436__en-us_topic_0000001219230635_p18241205818583">maintable_name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.08999999999999%" headers="mcps1.3.3.2.2.3.1.2 "><p id="mrs_01_1436__en-us_topic_0000001219230635_p182411958165819">Name of the primary table</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="mrs_01_1436__en-us_topic_0000001219230635_sa2d037069b6d4ccba70108f63dcd4897"><h4 class="sectiontitle">Precautions</h4><p id="mrs_01_1436__en-us_topic_0000001219230635_p13837914115010">To clear the data file of compacted segments, run the <strong id="mrs_01_1436__en-us_topic_0000001219230635_b73273563173">CLEAN FILES</strong> command on the secondary index table.</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_1436__en-us_topic_0000001219230635_s02de0ffe591b41d9b8435c03f68288f4"><h4 class="sectiontitle">Examples</h4><p id="mrs_01_1436__en-us_topic_0000001219230635_p177320369216"><b><span class="cmdname" id="mrs_01_1436__en-us_topic_0000001219230635_cmdname1557111400519">REFRESH INDEX</span></b> <em id="mrs_01_1436__en-us_topic_0000001219230635_i75773468158">productNameIndexTable</em>;</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_1436__en-us_topic_0000001219230635_sc1e4d30b28cb4317b1b12496c7d2b1d6"><h4 class="sectiontitle">System Response</h4><p id="mrs_01_1436__en-us_topic_0000001219230635_a1d061e440570489199ac5d773bb2c76f">After this command is executed, the number of data files in the secondary index table will be reduced.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_1424.html">DDL</a></div>
|
|
</div>
|
|
</div>
|
|
|