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

Support pathless $count over timeseries

    • Type: Icon: Task Task
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Query Integration

      $count query is rewritten as $group+$project over $_internalUnpackBucket stage so it is an include bucket spec but it might have no fields listed if there is no filter prior to counting. Ideally, we should support lowering such queries to SBE but if producing the right count of "empty documents" from the container stages proves to be tricky we should ensure the perf doesn't regress (either because it's OK to lower the prefix of the pipeline or because we block the lowering completely)

            Assignee:
            backlog-query-integration [DO NOT USE] Backlog - Query Integration
            Reporter:
            irina.yatsenko@mongodb.com Irina Yatsenko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: