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

$maxScan w/query returns N-1

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.5.4
    • Querying
    • None
    • ALL

    Description

      > 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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: