update in mongodb with $in query?

前端 未结 1 489
眼角桃花
眼角桃花 2021-01-17 05:14

I have three arrays coupon_ids, id_counter and increase_ctr. Now the value of coupon_id at any index is present at same index in id_counter and in increase_ctr. So for coupo

相关标签:
1条回答
  • 2021-01-17 05:52

    You cannot update multiple documents based on diffrent queries with diffrent updates, However updating the seperate documents should be pretty fast as you won't be waiting for the previous update to have happend on the document.

    0 讨论(0)
提交回复
热议问题