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

2dsphere explain reports "works" for nscanned & nscannedObjects

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.6.8
    • Affects Version/s: 2.6.6
    • Component/s: Geo, Querying
    • None
    • Fully Compatible
    • ALL

      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.

            Assignee:
            david.storch@mongodb.com David Storch
            Reporter:
            james.wahlin@mongodb.com James Wahlin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: