At the moment we build the source JSON to update embedded documents and this is a waste if there are actually no hits against the nested path (We perform a query we don't really need to).
It would be a performance enhancement to only perform the query to build the source JSON when we know we have index entries to update.
At the moment we build the source JSON to update embedded documents and this is a waste if there are actually no hits against the nested path (We perform a query we don't really need to).
It would be a performance enhancement to only perform the query to build the source JSON when we know we have index entries to update.