All Products
Search
Document Center

Tablestore:Limits on secondary indexes

Last Updated:Oct 29, 2026

This topic describes the limits on secondary indexes.

Index table limits

Limitations

Limitations

Description

Secondary index table name

Must be unique within an instance

The following rules apply to naming secondary index tables:

  • The name must be 1 to 255 bytes in length and can contain letters, digits, and underscores (_). The name is case-sensitive.

  • The name must start with a letter or an underscore (_).

Number of secondary indexes

5

If your business requirements exceed this limit, submit a ticket to contact us.

Number of secondary index fields

36

  • A primary key can have up to 8 columns. These columns consist of index columns and primary key columns that are automatically added from the data table. A maximum of 4 index columns are allowed. Index columns can be the primary key of the data table or any predefined columns.

  • A maximum of 32 attribute columns are allowed. Attribute columns must be predefined columns from the data table.

Data type of index columns

String, Integer, and Binary

  • String: Must be UTF-8 encoded. The maximum length is 1 KB.

  • Integer: A 64-bit signed integer. The length is 8 bytes.

  • Binary: Binary data. The maximum length is 1 KB.

Data type of attribute columns

String, Integer, Double, Boolean, and Binary

  • String: Must be UTF-8 encoded. The maximum length is 2 MB.

  • Integer: A 64-bit signed integer. The length is 8 bytes.

  • Double: A 64-bit double-precision floating-point number. The length is 8 bytes.

  • Boolean: True or False. The length is 1 byte.

  • Binary: Binary data. The maximum length is 2 MB.

Other limits

Limits

Limitations

Description

Index column

Cannot be an auto-increment column

The first primary key column of an index table cannot be an auto-increment column.

Index table data operations

Read-only

You can only read data from an index table. You cannot perform write operations on an index table.

Multiple data versions

Not supported

None.

Time to Live (TTL)

Supported

Disable data table updates to keep the TTL of the index table and the data table consistent.

Stream feature

Not supported

None.

Looking up the data table

Not supported

You must manually look up the data table.