In Express path if the projection is covered, do not apply it the second time

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • None
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      After SERVER-103991 Express path can avoid fetching the document if the projection is covered by an index.

      However, the projection would still be here: 

      https://github.com/10gen/mongo/blob/28e902156350243be96797a18b3ad9c25e292ca8/src/mongo/db/exec/express/express_plan.h#L1359

      This doesn't affect correctness, but can speed up express path even more.

      We should find a way to communicate if projection is covered to avoid this duplication.

            Assignee:
            Unassigned
            Reporter:
            Ivan Fefer
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: