All Products
Search
Document Center

:Modify an index

Last Updated:Nov 22, 2018

This section describes how to modify an index.

Prerequisites

You must have access permissions to DMS and be logged on to the DMS console.

Procedure

  1. Select an ApsaraDB for MongoDB instance and then click Log on to Database.

  2. After you log on to the instance, perform the following tasks:

    1. Expand the left-side object list and select the target index.

    2. Right-click the index and select Edit Index to open the index editing window.mongodb-edit-index

  3. To change the index name, enter a new name in the Index Name field. You can change the keys of the index by adding or deleting keys in the key list. Make sure that the keys in the list are sorted in the right order. The following figure shows the index editing window.

    mongodb-edit-index-2

    Note

    Some advanced settings are only available on the Advanced Options tab page. To set these settings, click the Advanced Options tab to set.

  4. Click OK to submit the index changes.