MongoDB's count() incorrectly returns 0 if a query is given

后端 未结 2 1024
执笔经年
执笔经年 2021-01-03 02:01

Our database is currently running and everything seems to fine. I wanted to do some statistics so I did some standard calls. Basically I wanted the number of some specific d

2条回答
  •  渐次进展
    2021-01-03 02:44

    Been a while, but I'm closing this now. But it was a corrupt database. Had to manually move all the items from one database to a new one since a backup stopped when it found the corrupt data, and valid data afterwards wasn't being backed up.

提交回复
热议问题