[DOCS-12086] Docs for SERVER-35419: Make diskRequirement in StageConstraints in DocumentSource reflect child pipeline requirements. Created: 27/Sep/18  Updated: 13/Nov/23  Resolved: 08/Jan/19

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: 4.1.4, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113

Type: Task Priority: Major - P3
Reporter: Kay Kim (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Fixed Votes: 0
Labels: read-only-views
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-35419 Make diskRequirement in StageConstrai... Closed
Related
related to DOCS-12330 Docs for SERVER-38362: Prevent $out s... Closed
is related to DOCS-11807 Docs for SERVER-34902: view definitio... Closed
Participants:
Days since reply: 5 years, 5 weeks, 1 day ago
Epic Link: DOCS: 4.2 Server/Tools

 Description   

Description

Description:

Though the code change is internal code, a consequence of this is that users are no longer allowed to create views whose pipelines contain a $out stage, whether it's at the top level or nested inside a $lookup or $facet.

See the docs changes for SERVER-34902; they're related.

Engineering Ticket Description:

Currently, if a stage (e.g. `$lookup`) has a "sub" pipeline that requires it to write persistent data, the stage's diskRequirement doesn't reflect that.

Instead the parent stage should have the max diskRequirement of it's pipeline's stages under the total ordering

kNoDiskUse < kWritesTmpData < kWritesPersistentData

e.g. of the bug https://github.com/mongodb/mongo/blob/b93fe0e61bf7e8bc96da2edeb66afa1b915b0b77/src/mongo/db/pipeline/document_source_lookup.h#L100-L112

https://github.com/mongodb/mongo/blob/b93fe0e61bf7e8bc96da2edeb66afa1b915b0b77/src/mongo/db/pipeline/document_source_facet.cpp#L232-L265 

Scope of changes

Just going to tweak the blurbs from DOCS-11807 to explicitly include "not even as part of $facets/$lookup"

Impact to Other Docs

MVP (Work and Date)

Resources (Scope or Design Docs, Invision, etc.)



 Comments   
Comment by Githook User [ 08/Jan/19 ]

Author:

{'email': 'kay.kim@mongodb.com', 'name': 'Kay Kim'}

Message: DOCS-12086: 4.2 view and out restriction - explicitly mention nested pipelines (revert the revert but fix docs number)

This reverts commit 2e963f167edef26512fd05051574542da05b48b2.
Branch: master
https://github.com/mongodb/docs/commit/3ad34aca8c29579cfdd121d0c70f2077c3636880

Generated at Thu Feb 08 08:04:22 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.