All Products
Document Center

Create an index

Last Updated: Jun 08, 2019

This section describes how to create an index.


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


  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 collection that you want to create the index in.

    2. Right-click the collection and then select New Index to open the index creation window.mongodb-create-index

  3. Enter the index name, and keys to the key list, and sort the keys in the New Index window. To add multiple keys, click Add, as shown in the following figure. Make sure that the keys in the list are sorted in the right order.



    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 create the index.