The $set variant will be faster as the $pull will have to do calculations on arrays. I am actually not even certain whether it will work, as you’re not really removing any elements with your query.
The $set variant will be faster as the $pull will have to do calculations on arrays. I am actually not even certain whether it will work, as you’re not really removing any elements with your query.