Creating an Index on an IQ System Store Table

Create an index on an IQ system store (catalog store) table.

Prerequisites
Database Version Table Index Privileges
SAP Sybase IQ 15.3 and 15.4 Requires CREATE permission on the specified dbspace.
Also requires one of:
  • DBA authority
  • REFERENCE permission on the underlying table of the index.
  • You own the underlying table of the index.
SAP Sybase IQ 16.0 Requires CREATE permission on the specified dbspace.
Also requires one of:
  • CREATE ANY INDEX system privilege.
  • CREATE ANY OBJECT system privilege.
  • REFERENCE permission on the underlying table of the index.
  • You own the underlying table of the index.
Task

Indexes improve search performance on the indexed column or columns. Indexes take up space in the database, however, and slow down the performance of insert, delete, and update operations.

When creating indexes, the order in which you specify the columns becomes the order in which the columns appear in the index. Duplicate references to column names in the index definition are not allowed.

  1. Navigate to the Tables Properties page of an IQ system store (catalog store) table.
  2. In the left pane, select Indexes.
    Note: Indexes does not appear for Proxy tables as they are not supported.
  3. Click New.
  4. On the Index Name page, specify a name for the index.
  5. Click Next.
  6. On the Columns page, highlight one or more columns and click Add Asc or Add Desc
    Note: Use Shift-click or Control-click to select multiple columns.
    1. In the Columns in index list, highlight a single column and click the up and down buttons to reposition the column.
    2. Highlight one or more columns and click Remove to remove columns from the index.
  7. Click Next.
  8. On the Uniqueness page, indicate if the index is unique.
  9. Click Next.
  10. On the Index Clustering page, indicate if the index is clustered and the dbspace to store the index.
  11. Click Next.
  12. (Optional) On the Comment page, enter a text comment for the index.
  13. Click Finish.
    The index appears in the properties view, but is not saved to the database.
  14. Do one of the following:
    • Click Apply to upload any property changes to the database and remain in the properties view.
    • Click OK to upload any property changes to the database and exit the properties view.
    • Click Cancel to cancel any unsaved property changes and exit the properties view.
Related tasks
Authenticating a Login Account for a Managed Resource
Related reference
Column Index Types