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

Reorganize lite parsing to include constraints information

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization

      At this moment mongo parses MQL query twice: using lite parser and "heavy" one (::createFromBSON). Those a two distinct stages with almost no shared information. This leads to complexity (duplication of the code). Lite parsing lacks certain information to make informed decisions.

      In this particular case, it is necessary for lite parsing to have access to sources constraints in order to reject or accept an embedded pipeline on $lookup stage. The current check is based on the name of the first stage in the pipeline which is unnecessarily specific.

            Assignee:
            backlog-query-optimization [DO NOT USE] Backlog - Query Optimization
            Reporter:
            ruslan.abdulkhalikov@mongodb.com Ruslan Abdulkhalikov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: