Consider not setting timeseriesBucketsMayHaveMixedSchemaData collection metadata property when false

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • None
    • 3
    • TBD
    • 🟥 DDL
    • None
    • None
    • None
    • None
    • None
    • None

      The proposal is to make the flag in TypeCollectionTimeseriesFields to work like:

      • If the collection may have mixed-schema buckets (mustConsiderMixedSchemaBucketsInReads == true), then set timeseriesBucketsMayHaveMixedSchemaData to true.
      • If the collection does not have mixed-schema buckets (mustConsiderMixedSchemaBucketsInReads == false), then do not set the timeseriesBucketsMayHaveMixedSchemaData, i.e. leave it as none.

      If we eventually also use TypeCollectionTimeseriesFields inside CollectionOptions in the shard catalog, then having none mean "no mixed-schema buckets" is convenient because e.g. it naturally won't "pollute" the output of listCollections for the 99.9% of customers without mixed-schema data

            Assignee:
            Unassigned
            Reporter:
            Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: