-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
ALL
I tried to execute mongodump with the -q parameter.
mongodump --host localhost --port 27017 -c dvc_id_reports -q {time:{$lt:ISODate("2016-06-20T00:00:00Z")}} -d testdb -o ./dump/
But it dumps only 241512 documents. (according to ouput of mongodump)
If i execute the same query with a count-command it returns 828413 documents.
db.getCollection('dvc_id_reports').count({time:{$lt:ISODate("2016-06-20T00:00:00Z")}}) // or db.getCollection('dvc_id_reports').find({time:{$lt:ISODate("2016-06-20T00:00:00Z")}}).count()
But if i use itcount() also return the wrong number of documents (241512):
db.getCollection('dvc_id_reports').find({time:{$lt:ISODate("2016-06-20T00:00:00Z")}}).itcount()
- duplicates
-
SERVER-3645 Sharded collection counts (on primary) can report too many results
- Closed