[SERVER-31228] Does changeStream involve documents from different collections? Created: 22/Sep/17  Updated: 25/Sep/17  Resolved: 25/Sep/17

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

Type: Question Priority: Major - P3
Reporter: Katherine Walker (Inactive) Assignee: Spencer Brody (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

In document_source_change_stream.h, getInvolvedNamespaces() has the following comment:
TODO SERVER-29138: we need to communicate that this stage will need to look up documents from different collections.

Should this stage look up documents from different collections or is this an outdated comment?



 Comments   
Comment by Spencer Brody (Inactive) [ 25/Sep/17 ]

As we worked on changeStreams we realized several things that make supporting a stream from more than just a single collection much trickier than we originally thought, so at this point I think it is increasingly unlikely that we'll ever support change streams on more than one collection. We certainly have no plans to do so in the immediate future.

Comment by Charlie Swanson [ 25/Sep/17 ]

katherine.walker (in case no one has answered your question yet) it does not today. There are plans to extend the change streams to the database level at some point in the future (see SERVER-29134). Since it looks like we're doing SERVER-29138 before we get to SERVER-29134, we should probably just update the comment or remove it entirely.

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