Open cristianmtr opened 3 years ago
Also regarding the search, you should not use collection.find_one for performance reasons.
collection.find_one
I think it is much more efficient to search all documents at once and then sort them:
.find({'id': { '$in': ids }})
Also regarding the search, you should not use
collection.find_one
for performance reasons.I think it is much more efficient to search all documents at once and then sort them:
.find({'id': { '$in': ids }})