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

Implement $sample fallback in $_internalUnpackBucket.

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.0-rc0
    • Affects Version/s: 5.0 Required
    • Component/s: Querying
    • Labels:
    • Fully Compatible
    • Query Execution 2021-03-22, Query Execution 2021-04-05, Query Execution 2021-04-19

      If the heuristics are below a determined threshold, the $sample pushdown algorithm should default to the top-k sorting algorithm used in $sample currently. This would unpack all of the buckets and proceed with the top-k sorting algo.

      We should also explore the heuristic space, determine a minimal set of significant variables and implement a threshold switch to toggle the fall-back or optimized $sample algorithm in $_internalUnpackBucket. 

            Assignee:
            david.storch@mongodb.com David Storch
            Reporter:
            eric.cox@mongodb.com Eric Cox (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: