Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: 聚簇表如何在创建空表时,提前新建出N个region
When creating a clustered table with create table
, how can N regions be initialized to avoid hotspot regions during data initialization?
If a clustered index is set, it will automatically disperse hotspots by default. However, the prerequisite is that the dispersion value must be set sufficiently. You can test it more in the local environment.
For hot issues, you can refer to the documentation on the usage scenarios of clustered indexes. PRE_SPLIT_REGIONS does not take effect on clustered index tables.
Clustered tables usually design the primary key id as auto_random, which should not support pre-initializing regions.
Non-clustered tables can pre-split Regions as follows:
AUTO_RANDOM clustered tables will automatically scatter data to avoid hotspots.
Clustered use split region
, split the region before writing data after creating the empty table.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.