Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-15336

Investigate changes in SERVER-65960: Fall back to classic engine when NLJ is chosen and disable SBE on the right of classic $lookup

      Original Downstream Change Summary

      If we land this patch, NLJ will no longer be pushed down to SBE.
      This is when no index can be used on the foreign side and the foreign side is too big to use a hash join.

      Description of Linked Ticket

      This task should check the index catalog for a wildcard, sparse, partial (possibly other special) indexes against the foreign collection that cover the join field, and if such an index exists we need to fall-back to the classic engine. 

      The main reason is these special indexes aren't supported by sbe currently, and we would replace an ix_scan with a collscan and incur a perf hit.

            Assignee:
            alison.huh@mongodb.com Alison Huh
            Reporter:
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              1 year, 11 weeks ago