Improve the decision logic for choosing HJ when lowering $lookup into SBE

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 6.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • QE 2022-03-07, QE 2022-03-21
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      1. Add a query knob for kMaxHashJoinCollectionSize. Currently, we've hardcoded the value of 100*1024*1024 in the code that selects the physical join algorithm. This should be a configurable knob (both for testing purposes and to let customers to, effectively, fully suppress HJ)
      2. Add a query knob that limits the number of records in the foreign collection to be considered for a HJ.
      3. Check the storage size of the collection.

            Assignee:
            Yoon Soo Kim (Inactive)
            Reporter:
            Irina Yatsenko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: