0
I have created a new field in my collection, but I would like to include this new field in all my collection records.
I tried to use the script that way:
db.getCollection('Contratos').update(
{},
{$set: {'pendente': false} },
false,
true
)
But returns me the following error by containing many records in the collection.
Request rate is large. More Request Units may be needed, so no changes Were made. Please Retry this request later.
Is there any way around this situation without running the same update more than once?
He even tried using
updateMany
? thosefalse
andtrue
is the same as{upsert: false, multi: true}
?– Cmte Cardeal
I just tried the
updateMany
and returned the same error. About the parameters, yes.. It is theupsert: false
andmulti: true
.– André Ricardo