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

Improve performance of $setIsSubset by replacing std::set with an unordered set

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • v5.0, v4.4
    • QE 2021-08-09

      The $setIsSubset currently uses std::set to creating a lookup table on the RHS array elements. We should replace this with stdx::unordered_set which provides 3-4x performance for large data sets.

            Assignee:
            rui.liu@mongodb.com Rui Liu
            Reporter:
            arun.banala@mongodb.com Arun Banala
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: