Does couchbase supports adding/updating of xattrs in transactions?
@Pragya thank you for your interest but no, this is not supported at this time.
Could you let us know your use-case?
Thanks @graham.pople for your prompt response. We have a use case where we need to create or update multiple documents across different collections, and simultaneously add custom extended attributes (xattrs) such as traceId
, originNamespace
, and others.
Is there an alternative or recommended way to achieve this functionality efficiently?
Hi @graham.pople , could you please provide any solution to the above use-case?
You can either add/update the xattrs non-transactionally after the transaction completes, or move those fields out of xattrs and into your regular object model.