MongoDB: selecting multiple objects using $in query vs parallel calls of single. what if more efficient?

前端 未结 0 567
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-30 18:54

Having mongo collection like this(pid field is indexed; there\'s above 1M records):

What would be best way to get URLs for array of pids like [123, 124, 125, 126]<

相关标签:
回答
  • 消灭零回复
提交回复
热议问题