MSCEWI1091

Create Index Not Supported

This is a deprecated version of the SnowConvert documentation, please visit the official site HERE.

Severity

Low

Description

Due to architectural reasons, Snowflake does not support indexes so, SnowConvert will comment out all the code related to the creation of indexes. Snowflake automatically creates micro-partitions for every table that help speed up the performance of DML operations, the user does not have to worry about creating or managing these micro-partitions.

Usually, this is enough to have a very good query performance however, there are ways to improve it by creating data clustering keys. Snowflake's official page provides more information about micro-partitions and data clustering.

Code Example

Input Code:

CREATE UNIQUE INDEX COL1_INDEX ILM (ADD POLICY OPTIMIZE AFTER 10 DAYS OF NO ACCESS) ON CLUSTER CLUSTER1
ONLINE USABLE DEFERRED INVALIDATION;

Output Code:

-- ** MSC-WARNING - MSCEWI1091 - CREATE INDEX NOT SUPPORTED. **
---- CREATE INDEX
--CREATE UNIQUE INDEX COL1_INDEX ILM (ADD POLICY OPTIMIZE AFTER 10 DAYS OF NO ACCESS) ON CLUSTER CLUSTER1
--ONLINE USABLE DEFERRED INVALIDATION

Recommendations

Last updated