Skip to main content

Cluster Key

This page provides a comprehensive overview of cluster key operations in Databend, organized by functionality for easy reference.

Cluster Key Management

CommandDescription
SET CLUSTER KEYCreates or replaces a cluster key for a table
ALTER CLUSTER KEYModifies an existing cluster key
DROP CLUSTER KEYRemoves a cluster key from a table
RECLUSTER TABLEReorganizes table data based on the cluster key
note

Cluster keys in Databend are used to physically organize data in tables to improve query performance by co-locating related data.

Try Databend Cloud for FREE

Multimodal, object-storage-native warehouse for BI, vectors, search, and geo.

Snowflake-compatible SQL with automatic scaling.

Sign up and get $200 in credits.

Try it today