[SERVER-55201] Optimize catalog cache refresh aggregation pipeline Created: 15/Mar/21  Updated: 29/Oct/23  Resolved: 25/Mar/21

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 5.0.0-rc0

Type: Task Priority: Major - P3
Reporter: Jordi Serra Torrens Assignee: Jordi Serra Torrens
Resolution: Fixed Votes: 0
Labels: PM-1965-Cleanup
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2021-04-05
Participants:
Linked BF Score: 0

 Description   

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.



 Comments   
Comment by Githook User [ 25/Mar/21 ]

Author:

{'name': 'Jordi Serra Torrens', 'email': 'jordi.serra-torrens@mongodb.com', 'username': 'jordist'}

Message: SERVER-55201: Optimize catalog cache refresh aggregation pipeline
Branch: master
https://github.com/mongodb/mongo/commit/2493a7b71ce3a1d5b6ec34c276bb6bbbf218e69f

Generated at Thu Feb 08 05:35:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.