I run the following command in a box, which is part of a set of completed replicas. I'm just trying to export from this particular fragment, I will run the same command on a different fragment.
When I do this, Mongo should dump a maximum of 1.72 million records, but instead, it looks like he is trying to export a total of 590 million records in the collection. Why doesn't the query apply and export only my data selection?
mongodump -d obscured -c message --query "{sendDate: {\$gt: 1380499200}}" \ --out=da1-messagedump --port=27018
Any help would be greatly appreciated.
source share