CREATE INDEX

Function

CREATE INDEX creates an index in a specified table.

Indexes are primarily used to enhance database performance (though inappropriate use can result in slower database performance). You are advised to create indexes on:

The partitioned table does not support concurrent index creation, partial index creation, and NULL FIRST.

Precautions

  • For a table where a large amount of data needs to be added, deleted, or modified, it is recommended that the number of indexes be less than or equal to three. The maximum number of indexes is five.
  • Do not perform the CREATE INDEX and REINDEX operations on large tables during peak hours.
  • For more information about development and design specifications, see "GaussDB(DWS) Development and Design Proposal" in the Data Warehouse Service (DWS) Developer Guide.

Syntax

Parameters

Examples

Helpful Links

ALTER INDEX, DROP INDEX