[SERVER-68277] Rewrite namespace on timeseries changestreams to buckets collection Created: 25/Jul/22  Updated: 05/Dec/22

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

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

Assigned Teams:
Query Execution
Participants:
Story Points: 2

 Description   

When opening a change stream on a timeseries view, it should be rewritten into a change stream on the underlying buckets collection.

We should update DocumentSourceChangeStream::getNsRegexForChangeStream to also match the underlying buckets collection if featureFlagTimeSeriesChangeStreams is enabled. There is no need to extend the regex for existing non-timeseries collections.

We may also need to check the system.buckets collections for some DDL information. ChangeStreamEventTransformer::getBuilder can check system.buckets the way it already checks system.views. Alternatively, we could create a custom transformer, which would apply the default ChangeStreamEventTransformer and then transform that output.


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