Creating a Hash Partition

Hash partitioning distributes table data to logical partitions for parallel execution, which can enhance join performance on large tables and distributed queries. Hash partitioning maps data to partitions based on partition key values processed by an internal hashing function.

Prerequisites
Database Version Table Partition Privileges
SAP Sybase IQ 15.3 and 15.4 Table owned by self – None required.
Table owned by other users – Requires one of:
  • DBA authority.
  • ALTER permission on the table.
SAP Sybase IQ 16.0 Requires one of the following:
  • ALTER ANY OBJECT system privilege.
  • CREATE permission on the dbspace along with one of:
    • ALTER ANY TABLE system privilege.
    • ALTER permission on the table.
    • You own the table.
Task
  1. In the Perspective Resources view, select the resource and select Resource > Administration Console.
  2. In the Administration Console, expand IQ Servers > Schema Objects > Tables.
  3. Select Tables, select the table in the right pane, click the drop-down arrow that appears beside the table name, and select Properties.
  4. Select Partitions and click New.
    The Create Partition Wizard appears.
  5. On the Partition Type tab, specify a hash partition:
    Option Description
    What type of partition do you want to create? Select Hash.
  6. Click Next.

    Hash partition keys are restricted to a maximum of eight columns with a combined declared column width of 5300 bytes or less. You declare the partition key columns; the number and location of the partitions are declared internally.

    Partition keys can contain NULL and DEFAULT values. All NULL values are mapped to the same hash partition.

  7. Select one or more table columns and click Add. To remove an added column, select it and click Remove.
    Tip: Use Shift-click or Control-click to select multiple columns.
  8. Click Finish.
  9. Click Apply or OK.
Related tasks
Creating a Range Partition
Creating a Hash-Range Partition
Deleting a Partition
Unpartitioning a Table
Merging Partitions
Splitting Partitions
Moving a Partition
Managing Column Storage in a Table Partition
Viewing or Modifying Table Partition Properties
Authenticating a Login Account for a Managed Resource
Related reference
Table Partition Privilege Summary