Investigate query rewrites for fixed bucketing for updates/deletes

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Integration
    • Fully Compatible
    • QI 2023-08-07, QI 2023-08-21
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In the updates/delete code path we call createPredicatesOnBucketLevelField which can use the fixed buckets rewrites in these places:

      1. getBucketLevelPredicateForRouting (won't apply for the optimization since this is on mongos).
      2. getPushdownPredicates() --> getMatchExprsForWrites --> ParsedDelete and ParsedUpdateBase
      3. getPushdownPredicates() --> pushdownPredicate --> 
        makeTimeseriesCreateIndexesCommand

      We need to investigate if we can pass the fixedBuckets parameter to these places.

            Assignee:
            Gil Alon
            Reporter:
            Gil Alon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: