Is there a way to update multiple documents at once using the subdocument API? I need to update a single field in a large number of documents, and it seems incredibly wasteful to
- Call the subdoc API thousands of times
- Send the entire document in a batch operation when all I’m updating is a single field.
Would it be better to run this as a query string instead?
UPDATE bucket SET doc.field USE KEYS […, …, …, …, …,]
or can multiple docs be updated at once using the subdoc api?
var queryResult = await buck.MutateIn<Annotation>(annot0) .MutateIn<Annotation>(annot1) .MutateIn<Annotation>(annot2) .MutateIn<Annotation>(annot3) <.....> .Upsert("s", "B", false) .ExecuteAsync();