Optimize catalog cache refresh aggregation pipeline

XMLWordPrintableJSON

    • Fully Compatible
    • Sharding 2021-04-05
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      OnĀ SERVER-54874 we introduced an aggregation pipeline to refresh the catalog cache so that it reads config.collection and config.chunks at a same point-in-time in a single aggregation.

      This pipeline can be optimized to avoid using intermediate arrays (that the $facet stage is generating). This intermediate arrays can hit the 100 MB limit and fail the aggregation.

              Assignee:
              Jordi Serra Torrens
              Reporter:
              Jordi Serra Torrens
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: