Avoid quadratic runtime complexity in the sampling cardinality estimator

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

      See sampling_estimator_impl.cpp. When estimating the total number of keys that would be scanned by an index scan, the sampling estimator naively iterates over the fields of the documents in the sample once per field in the index being scanned. This results in time complexity O(#fields in the index * #fields in the sample total).

            Assignee:
            Unassigned
            Reporter:
            Kartal Kaan Bozdogan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: