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

Different result between db.count and db.find

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical - P2 Critical - P2
    • None
    • 3.2.6
    • None
    • None
    • ALL

    Description

      Hi Team,

      I have a very weird problem, when I run db.count the command returns 2 but when I run db.find the command returns only one.

      mongos> db.xxx.count({ "_id" : "xxx1787319235"});
      2
      mongos> db.xxx.find({ "_id" : "xxx1787319235"}, {yyy:1});
      { "_id" : "xxx1787319235", "yyy" : "1e1805a52ef44173233082e34e4175df07288f2ea0928a5e05217a9d969a2ef3" }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            PM Pierre MOELO [X]
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: