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

Update definition of maxWorks in QO Architecture Guide

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • Fully Compatible
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None

      The QO Architecture Guide currently refers to maxWorks as some value around ~10K. This is true for "small" collections, but the value is actually defined as:

      max(10K, 0.3 * collection_size)
      

      This should be updated for greater specificity with internalQueryPlanEvaluationWorks and internalQueryPlanEvaluationCollFraction.

      https://github.com/10gen/mongo/blob/e60552830a722dc52422f39bf6be407933934392/src/mongo/db/exec/trial_period_utils.cpp#L44-L55

            Assignee:
            daniel.segel@mongodb.com Daniel Segel
            Reporter:
            daniel.segel@mongodb.com Daniel Segel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: