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

Support $planCacheStats aggregation stage on time-series collection (sharded and unsharded)

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Query Execution

      Running coll.aggregate([\{$planCacheStats: {}}]) on a time-series collection will fail with
      "$planCacheStats is only valid as the first stage in a pipeline".
       
      In case of time-series pipelines, $_internalUnpackBucket is the first stage. We need special handling for stages with constraints on pipeline position like the following for $indexStats. https://github.com/10gen/mongo/blob/master/src/mongo/db/views/resolved_view.cpp/#L137-L161

            Assignee:
            backlog-query-execution Backlog - Query Execution
            Reporter:
            adi.agrawal@mongodb.com Adi Agrawal
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                Error rendering 'slack.nextup.jira:slack-integration-plus'. Please contact your Jira administrators.