Remove quadratic behavior in documentToBsonWithPaths

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We can use the sort order from OrderedPathSet and check prev == cur, rather than re-scanning the WIP BSON each time

      This will improve performance classic $match performance when DepsTracker contains duplicate toplevel fields.

      Same principle applies to MatchProcessor::hasUniquePrefixes, though that's not currently quadratic.

            Assignee:
            Evan Bergeron
            Reporter:
            Evan Bergeron
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: