The secondary index feature allows you to query data based on the primary key of a data table and the index columns of the secondary indexes that are created for the table. This speeds up data queries. This topic describes how to use the secondary index feature by using Tablestore SDK for Java.
Operation | Description |
You can create a secondary index for an existing data table. | |
You can query data in a secondary index by reading a single row of data or reading data whose primary key values are within a specific range. If the required attribute columns are included in the secondary index, data can be directly read from the secondary index. Otherwise, data must be read from the data table. | |
You can delete a secondary index that is created for a data table. |