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

Cache chunk bounds as an array in resharding collection cloning pipeline

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v5.0
    • Sprint:
      Sharding 2021-06-28
    • Story Points:
      1

      Description

      DocumentSourceSequentialDocumentCache::doOptimizeAt() caches on a per-stage basis of the $lookup pipeline. Restructuring the aggregation pipeline so the $objectToArray values are done as a separate stage from the $match that references the $$sk variable would mean their results can be cached too.

      The changes made in this ticket will be obsoleted by SERVER-57667 but will reduce the per-document processing overhead by a constant factor.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              max.hirschhorn Max Hirschhorn
              Reporter:
              max.hirschhorn Max Hirschhorn
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: