nav-img
Advanced

Creating a Collection

Prerequisites

You have logged in to a DDS instance and created a database.

Procedure

  1. On the top menu bar, choose Database Management.

    Figure 1 Database list


  2. On the Collections tab page, click New Collection.

    Figure 2 Database management


  3. On the displayed page, enter a collection name. Select Capped collection, Auto index_id, or No Padding as required.

    • Capped collection: Set the maximum number of bytes and the maximum number of documents. If the specified value is reached, an error is reported. The value specified must be greater than 0.
    • Auto index_id: If you select this option, the system will automatically create an index on the _id field.
    • No Padding: A storage policy that does not reserve storage space for a new record when inserting it when you insert it.

  4. Enter validation rules, and set Validation Level and Validation Action.

    Figure 3 Creating a collection-2


    Validation levels include strict, moderate, and off.

    Verification actions include error and warn.

    Note
    • Options for Validation Level include:
      • strict: a strict validation level.
      • moderate: a moderate validation level.
      • off: no validation level.
    • Options for Validation Action include:
      • error
      • warn

  5. Ensure all the settings are correct and click OK. The created collection is displayed in the collection list and you can operate it.