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

Map predicates on min time to a portion of _id

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.9.0
    • Component/s: Querying
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Query Optimization 2021-02-22, Query Optimization 2021-03-08

      Description

      As part of the time-series schema, min time is embedded into _id. In addition to using the control.min.time field, map min time predicates to predicates on time to the min time portion of _id as well. This should lead to guaranteed index utilization. This should be done inside $unpackBucket's doOptimizeAt() for $eq, $gt, $lt, $gte, $lte only.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              katherine.wu Katherine Wu
              Reporter:
              jacob.evans Jacob Evans
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: