All Products
Search
Document Center

MaxCompute:Partition

Last Updated:Aug 18, 2025

This topic describes the concepts of partitions.

Introduction

Partitioning organizes data by grouping it into different directories based on the values in one or more specified partition key columns.

In MaxCompute, each value in a partition key column is specified as a partition. You can specify multi-level partitions with multiple partition key columns. Multi-level partitions are similar to multi-level directories in structure.

Partitioning optimizes queries by enabling partition pruning. When you specify partitions in the WHERE clause of a query, MaxCompute scans only the data in those partitions instead of the entire table. This significantly improves query performance and reduces compute costs. Appropriate design and use of partitions helps improve query performance, simplifies data management, and supports flexible data access and processing. For more information about partitioned tables, see Overview of partitioned tables.分区表

Partition operations

You can perform operations on partitions in an existing table, such as adding partitions and modifying partition values. For more information, see Partition and column operations.

Note that certain SQL operations on partitions, such as inserting data into dynamic partitions, can be less efficient and may lead to higher costs. For example, Insert or overwrite data into dynamic partitions (DYNAMIC PARTITION).

Partitioned tables

A partitioned table is one where data is physically organized into separate storage locations based on the values of one or more designated columns. For more information about partitioned tables and how to use them, see:

The syntax of specific MaxCompute commands used to process partitioned and non-partitioned tables differs. For more information, see Create and delete tables, Modify and view tables, and Insert or update data into a table or a static partition (INSERT INTO and INSERT OVERWRITE).