Mongodump with --query date

Hi @Agus_Luesma, it does look like this query is doing a collection scan. Do you have an index on the timestamp field? If there is no index that the query can use, it will have to check all documents which is inefficient. You can see here for more information on indexes: https://docs.mongodb.com/manual/indexes/

1 Like