[SERVER-84427] Add a query knob to configure $graphLookup memory limit Created: 27/Dec/23  Updated: 28/Dec/23

Status: Backlog
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Ivan Fefer Assignee: Backlog - Query Execution
Resolution: Unresolved Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-23980 $graphLookup should spill to disk if ... Backlog
is related to SERVER-74370 100MB stage memory limit for $graphLo... Backlog
Assigned Teams:
Query Execution
Participants:

 Description   

Currently it is a hard-coded 100 MB:

https://github.com/mongodb/mongo/blob/8e776c6ba6660e2e34868729f895a628572b7b39/src/mongo/db/pipeline/document_source_graph_lookup.h#L297

We should add a query knob, like we do with $group: https://github.com/mongodb/mongo/blob/3a627b048e2488a0c2420ce1296324891de5902d/src/mongo/db/query/query_knobs.idl#L446

 


Generated at Thu Feb 08 06:55:00 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.