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

Allow creating TTL index over timeField with partialFilterExpression defined over metaField

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Execution Team 2022-05-30, Execution Team 2022-06-13, Execution Team 2022-07-11

      We should reject any TTL index that is created over a field other than the collection timeField, as well as any TTL index that does not include a partialFilterExpression. The partialFilterExpression should only be allowed to access the metaField (constant across measurements within a bucket), and not any measurement data. We should be able to reuse some existing code for checking and re-writing the partialFilterExpression.

            Assignee:
            fausto.leyva@mongodb.com Fausto Leyva (Inactive)
            Reporter:
            dan.larkin-york@mongodb.com Dan Larkin-York
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: