I was wondering if in php i can either get a document and also apend or prepend the doc within single call to server to make this more effective. Lets say i have a doc which tracks how often a doc is viewed it makes sense to get the doc and also increase the view counter by 1 in single call. Does it make a performance difference if you get doc before or after the increase of counter.
Also is this option also avail in the Subdoc functions ? To get a part of the doc only and update counter…
It is possible to combine multiple mutation operations (including counters) in the single subdoc call, but PHP SDK at the moment cannot combine mutation and lookup operations.