This topic describes the limits on secondary indexes.
Limits on index tables
Item | Limit | Description |
Name of a secondary index | Unique within an instance | Naming conventions for a secondary index:
|
Number of secondary indexes | 5 | If your business requirements are not met due to the limit, submit a ticket. |
Number of index fields | 36 |
|
Data types supported by index columns | String, Integer, and Binary |
|
Data types supported by attribute columns | String, Integer, Double, Boolean, and Binary |
|
Other limits
Item | Limit | Description |
Index column | Columns except auto-increment primary key columns | The first primary key column of an index table cannot be an auto-increment primary key column. |
Operation on data in index tables | Read-only | You can only read data from index tables. You cannot write data to index tables. |
Max versions | Not supported | None |
Time to live (TTL) | Supported | You must prohibit updates to a data table to ensure that the TTL of the data table is the same as the TTL of the index table that is created for the data table. |
Stream | Not supported | None |
Query from data tables | Not supported | Queries from data tables are required. |