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

Support pathless $count over timeseries

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Gone away
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Query Integration

    Description

      $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)

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: