In list partitioning, Adaptive Server distributes rows among partitions according to values in the partitioning keys. The partitioning key of each row is compared with a set values specific to each partition to determine how table rows are distributed.
Creating list partitions
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 |
|---|---|
List |
Partitioning strategy. |
Partition Key Column |
Table column that determines how table data is to be partitioned. |
Partition Name |
Name of partition (optional). |
Segment |
Segment name (optional). |
Values |
Unique values that determine how the rows are to be distributed among the partitions. |
After you have chosen a partitioning strategy and key column, the Partition Specification dialog box opens. Enter partition values.
Enter the name of a partition in the Partition Name box (optional).
Select a segment from the drop-down list in the Segment box (optional).
Enter values for the partition. The values must be of the same datatype as the column.
Click OK.
Repeat steps 7 through 10 until you have defined values for all list partitions.