Disallow the use of sparse indexes with $facet + $lookup

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • ALL
    • 5
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      SERVER-64082 discussed the usage of wildcard index/sparse index in $lookup and decided not to use any sparse indexes in $lookup. The banning logic was introduced by SERVER-65665  but $lookup in a $facet seems to still use a wildcard index on the foreign collection.

              Assignee:
              Ruoxin Xu
              Reporter:
              Ruoxin Xu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: