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

Rewrite namespace on timeseries changestreams to buckets collection

    XMLWordPrintable

Details

    • Improvement
    • Status: Open
    • Major - P3
    • Resolution: Unresolved
    • None
    • None
    • None
    • None
    • 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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: