Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-4706

Support for $out to Time-series collections

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.23.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Hide

      DRIVERS-2558:
      These changes add a new option ("timeseries") for the $out aggregation stage. $out will now accept a "timeseries" option that takes in a time-series specification. $out will create a new time-series collection in the specified namespace if an existing collection does not exist in that namespace. If a collection exists in that namespace, $out will do the following:

      1. If the collection is not a time-series collection, $out will error.
      2. If the collection is a time-series collection $out will error if the timeField and the metaField have been changed by the user. The time-series specification inputted in $out must match the existing time-series collection.
      3. If the collection is a time-series collection and matches the specification passed in by the user $out will replace that existing time-series collection with the documents in the aggregation stage.

      These changes are not supported for sharded collections. There is currently follow-up work tracked by SERVER-74061 currently in progress to add support for secondaries and sharded clusters.

      For more information the syntax doc can be found at this link: https://docs.google.com/document/d/15lAB2yQ8e_fR4RnihjsJMotEaIiTe9q_qk-D509DWkM/edit?usp=sharing

      Show
      DRIVERS-2558: These changes add a new option ("timeseries") for the $out aggregation stage. $out will now accept a "timeseries" option that takes in a time-series specification. $out will create a new time-series collection in the specified namespace if an existing collection does not exist in that namespace. If a collection exists in that namespace, $out will do the following: 1. If the collection is not a time-series collection, $out will error. 2. If the collection is a time-series collection $out will error if the timeField and the metaField have been changed by the user. The time-series specification inputted in $out must match the existing time-series collection. 3. If the collection is a time-series collection and matches the specification passed in by the user $out will replace that existing time-series collection with the documents in the aggregation stage. These changes are not supported for sharded collections. There is currently follow-up work tracked by  SERVER-74061  currently in progress to add support for secondaries and sharded clusters. For more information the syntax doc can be found at this link:  https://docs.google.com/document/d/15lAB2yQ8e_fR4RnihjsJMotEaIiTe9q_qk-D509DWkM/edit?usp=sharing
    • Minor Change
    • Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      Support for $out to time series collections.
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      Yes.
      3. Which versions of the driver/connector does this apply to?
      2.23.0

      Show
      1. What would you like to communicate to the user about this feature? Support for $out to time series collections. 2. Would you like the user to see examples of the syntax and/or executable code and its output? Yes. 3. Which versions of the driver/connector does this apply to? 2.23.0

      This ticket was split from DRIVERS-2558, please see that ticket for a detailed description.

            Assignee:
            adelin.mbidaowona@mongodb.com Adelin Mbida Owona
            Reporter:
            dbeng-pm-bot PM Bot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: