MongoDB query with $sort takes too long
I have a large mongo collection, when I run {"$and":[{"fieldCheck":"1"},{"timestamp":{"$lt": MAX_SAFE_INTEGER}}]}
, the query results the output fast, but when i sort by {timestamp: -1, _id: -1}
with the previous filters then the query takes forever.