Defining a list partition

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.

StepsCreating list partitions

  1. Double-click the Databases folder in the left pane.

  2. Double-click the icon of the database with the table to partition.

  3. Double-click the User Tables folder.

  4. Double-click the icon of the table to repartition.

  5. Select the Data Partitions folder.

  6. Double-click the Repartition icon in the right pane. The Create Partition wizard opens. The wizard asks for this information:

    Table 17-7: Inputs to the Create Partition wizard

    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.

  7. Enter the name of a partition in the Partition Name box (optional).

  8. Select a segment from the drop-down list in the Segment box (optional).

  9. Enter values for the partition. The values must be of the same datatype as the column.

  10. Click OK.

  11. Repeat steps 7 through 10 until you have defined values for all list partitions.