$maxScan w/query returns N-1

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.5.4
    • Component/s: Querying
    • None
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      > db.mxscan.find()._addSpecial( "$maxScan" , 40 ).itcount()
      40
      > db.mxscan.find({nr:{$ne:0}})._addSpecial( "$maxScan" , 40 ).itcount()
      39
      

      Doesn't seem to matter if we have an index on "nr" or not.

            Assignee:
            Unassigned
            Reporter:
            Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: