Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-68277

Rewrite namespace on timeseries changestreams to buckets collection

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Query Execution
    • 2

      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.

            Assignee:
            backlog-query-execution Backlog - Query Execution
            Reporter:
            mickey.winters@mongodb.com Mickey Winters
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: