Cache set of fields in sample to reduce validation overhead in samplingCE

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      SERVER-107701 introduced the checkSampleContainsMatchExpressionFields() function in sampling_estimator_impl.cpp to ensure that the sample was not missing fields required by the MatchExpression. One idea suggested by Timour was to store the sampled field names in the CE cache to avoid scanning the fields of equivalent MatchExpressions output by the plan enumerator as the overhead could be quite large.

            Assignee:
            Unassigned
            Reporter:
            Naafiyan Ahmed
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: