Now I want to find document in Mongodb using SQL like follow:
var ids = [1, 2, 3, ...] // about 100000
db.getCollection('table').find({id: {$in: ids})
And then export the found data.
However, the amount of data was so large that no results were found for a long time.