Count clustered index scan as indexScan and not collectionScan in $lookup explain output

XMLWordPrintableJSON

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

      Based on this community post: https://www.mongodb.com/community/forums/t/clustered-collections-as-lookup-target/246893

      The user is worried we are not using clustered index, because in explain output for $lookup they see a lot of collectionScans and no indexes used.

      It happens because internally clustered index scan is a collection scan and not an index scan.

      We should improve explain output by showing explicitly that clustered index is used.

            Assignee:
            [DO NOT USE] Backlog - Query Execution
            Reporter:
            Tarun Gaur (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: