Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-53984

Add metadata for clustered indexes into the durable catalog

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: Storage
    • Labels:
      None
    • Fully Compatible
    • Execution Team 2021-02-08

      The durable catalog entry for time-series collections needs to store the following additional metadata for clustered indexes:

      {
          md: {
              options: {
                  clusteredIndex: {
                      keyFormat: <String>,
                      expireAfterSeconds: <int>,
                  },
              },
          },
      }
      

      keyFormat indicates the type of the clustered index keys. Only "ObjectId" will be supported at this time for time-series collections. This field cannot be modified.

      expireAfterSeconds, if present, will be used for TTL deletions and can be modified via the collMod command.

      As clustered indexes are only permitted on time-series collections, regular collections will not have this new metadata field.

       

            Assignee:
            louis.williams@mongodb.com Louis Williams
            Reporter:
            gregory.wlodarek@mongodb.com Gregory Wlodarek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: