Which of these mongodb queries is more efficient?

后端 未结 0 589
無奈伤痛
無奈伤痛 2021-01-17 20:08

For a mongodb collection with 30+ million documents is it better to:

1: Query multiple times like this:

for (const _id of array) {

await Schema.delete         


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