SORTKEY
Last updated
Last updated
The keyword that specifies that the column is the sort key for the table. In Snowflake, SORTKEY
from Redshift can be migrated to CLUSTER BY
because both optimize data storage for query performance. CLUSTER BY
in Snowflake organizes data on specified columns, similar to how SORTKEY
orders data in Redshift.
Click to navigate to the Amazon Redshift docs page for this syntax.
: The performance of the CLUSTER BY may vary compared to the performance of Sortkey.