Setting a Clustered Index

Using a clustered index increases the chance that two rows from adjacent index entries will appear on the same page in the database. This can lead to performance benefits by reducing the number of times a table page needs to be read into the buffer pool.

Prerequisites
Database Version Materialized View Privileges
SAP Sybase IQ 15.3 and 15.4 Requires one of:
  • DBA authority.
  • You own the materialized view.
SAP Sybase IQ 16.0 Requires one of:
  • ALTER ANY MATERIALIZED VIEW system privilege.
  • ALTER ANY OBJECT system privilege.
  • You own the materialized view.
Task
Materialized view data is read-only. Materialized views are only supported for system store (IQ catalog store) tables.
  1. In the Perspective Resources view, select the resource and select Resource > Administration Console.
  2. In the left pane, select IQ Servers > Schema Objects > Views > Materialized Views.
  3. Select a single materialized view in the right pane, click the drop-down arrow that appears to the right, and select Set Clustered Index.
  4. In the list of indexes, confirm the index you want to cluster. Clicking any index sets its Clustered value to Yes and changes all other Clustered values to No.
Related concepts
Materialized View Permissions
Materialized View Indexes
Related tasks
Creating a Materialized View
Viewing Materialized View Data in the Execute SQL Window
Refreshing Materialized View Data
Truncating Materialized View Data
Validating Materialized View Data
Recompiling and Enabling a Materialized View
Disabling a Materialized View
Deleting a Materialized View
Generating Materialized View DDL Commands
Viewing or Modifying Materialized View Properties
Authenticating a Login Account for a Managed Resource
Creating an Index on an IQ System Store Table
Related reference
Materialized View Privilege Summary