Alter Index
Overview
Create, alter or drop an index. or unique key. Indexes come in two varieties unique (UniqueKey) and non-unique (Index), you can create, alter, drop, rebuild and analyze them all the same. Indexes are used to improve read performance of the database.
Examples
CREATE INDEX IX_LanguageId
(
LanguageId
) ON WordList:Word
CREATE UniqueKey IX_Id
(
Id
) ON WordList:Word
CREATE INDEX IX_Translation
(
SourceLanguageId,
TargetLanguageId,
) ON WordList:Translation WITH (PARTITIONS = 1000)
See also
Related
- Keywords - A breakdown of all high-level statements available via the query handler.