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

2dsphere explain reports "works" for nscanned & nscannedObjects

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.6.6
    • Fix Version/s: 2.6.8
    • Component/s: Geo, Querying
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL

      Description

      RE: https://github.com/mongodb/mongo/blob/r2.6.6/src/mongo/db/query/explain_plan.cpp#L266

      When an explain is run on a $nearSphere query against a 2dsphere index we are incorrectly recording nscanned and nscannedObjects to be the "works" value rather than the actual # of index entries and documents evaluated.

      This has been corrected for 2.8 as part of SERVER-9986 but not for 2.6. As SERVER-9986 is a broad ticket covering much more than this issue I am entering a separate ticket to address 2.6.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: