doc-exports/docs/dws/dev/dws_04_0443.html
Lu, Huayi a24ca60074 DWS DEVELOPER 811 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2023-01-19 13:37:49 +00:00

15 lines
1.9 KiB
HTML

<a name="EN-US_TOPIC_0000001098975028"></a><a name="EN-US_TOPIC_0000001098975028"></a>
<h1 class="topictitle1">Using Partitioned Tables</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001098975028__a0111a220c81446cd812b626c245f69bf">Partitioning refers to splitting what is logically one large table into smaller physical pieces based on specific schemes. The table based on the logic is called a partitioned table, and a physical piece is called a partition. Data is stored on these smaller physical pieces, namely, partitions, instead of the larger logical partitioned table. A partitioned table has the following advantages over an ordinary table:</p>
<ol id="EN-US_TOPIC_0000001098975028__o3a31dd7e8c6a4dd781902f5a68d88823"><li id="EN-US_TOPIC_0000001098975028__lfe24045884044943998e00a039136691">High query performance: The system queries only the concerned partitions rather than the whole table, improving the query efficiency.</li><li id="EN-US_TOPIC_0000001098975028__l453d8600d652437c854e35468fd55253">High availability: If a partition is faulty, data in the other partitions is still available.</li><li id="EN-US_TOPIC_0000001098975028__l8e7975db193245eab9d254399bb252bd">Easy maintenance: You only need to fix the faulty partition.</li></ol>
<p id="EN-US_TOPIC_0000001098975028__ad1078cea943043b1a4b89511037a7355"><span id="EN-US_TOPIC_0000001098975028__text253465916">GaussDB(DWS)</span> supports range-partitioned tables.</p>
<p id="EN-US_TOPIC_0000001098975028__p12807325175115">Range-partitioned table: Data within a specific range is mapped onto each partition. The range is determined by the partition key specified during the partitioned table creation. The partition key is usually a date. For example, sales data is partitioned by month.</p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0437.html">Reviewing and Modifying a Table Definition</a></div>
</div>
</div>