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

Different result between db.count and db.find

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: 3.2.6
    • Component/s: None
    • None
    • ALL

      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" }
      

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

              Created:
              Updated:
              Resolved: