Improve sampling CE performance in the presence of large $in lists: Index bounds checks

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Critical - P2
    • 9.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When checking if a document satisfies a set of IndexBounds, we first extract all the index keys, then for each one we check if each component is in corresponding OrderedIntervalList for that field. This check currently iterates over all the intervals in order. Instead, we can perform a binary search as we know the OrderIntervalList is sorted. This may help improve the sampling time for large indexed $in queries.

            Assignee:
            Natalie Hill
            Reporter:
            Ben Shteinfeld
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: