This functionality is available in Adaptive Server 15.0
and later.
By default, Adaptive Server creates every table with a single, round-robin partition. You can repartition a table according to these strategies:
Range – distributes rows among partitions according to values in the partitioning keys. The partitioning key or keys of each row are compared with a set of upper and lower bounds to determine which partition the row belongs to.
Every partition has an inclusive upper bound, which is specified when the partition is created.
Every partition except the first has a noninclusive lower bound, which is specified implicitly by the upper bound on the next-lower partition.
List – distributes rows among partitions according to values in the partitioning key. The partitioning key of each row is compared with a unique set of specified values associated with each partition to determine the appropriate partition.
Hash – uses a hash function to specify the partition to which a row is assigned. The user selects the partitioning key columns; Adaptive Server chooses the hash function and controls the partition assignment.
Round-robin – assigns rows in a round-robin manner to each partition so that each partition contains an approximately equal number of rows.
Repartitioning a table
Double-click the Databases folder in the left pane.
Double-click the icon of the database with the table to partition.
Double-click the User Tables folder.
Double-click the icon of the table to repartition.
Select the Data Partitions folder.
Double-click the Repartition icon in the right pane. The Create Partition wizard opens. The wizard asks for this information:
Input |
Description |
|---|---|
Hash, Range, List, or Round-robin |
Choice of partitioning strategy. |
Partition Key Columns |
Table columns that determine how the table is to be partitioned. For hash-, list-, and range-partitioned tables only. List partitioning has only one key column. |
Partition Name |
Name of partition (optional). |
Segment |
Segment name (optional). |
Values |
Enter values for range or list partitions. |