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

Support ascending and descending indexes on time-series measurements

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Execution Team 2021-07-12, Execution Team 2021-07-26, Execution Team 2021-08-09

      For ascending indexes, a createIndexes command on a time-series collection measurement field:

      {
          createIndexes: “abc”,
          indexes: [ { key: { a : 1 } } ]
      }
      

      will be equivalent to the following operation on the underlying buckets collection:

      {
          createIndexes: “system.buckets.abc”,
          indexes: [ { key: { control.max.a : 1, control.min.a : 1 } } ]
      }
      

      For descending indexes, a createIndexes command on a time-series collection measurement field:

      {
          createIndexes: “abc”,
          indexes: [ { key: { a : -1 } } ]
      }
      

      will be equivalent to the following operation on the underlying buckets collection:

      {
          createIndexes: “system.buckets.abc”,
          indexes: [ { key: { control.min.a : -1, control.max.a : -1 } } ]
      }
      

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

              Created:
              Updated:
              Resolved: