Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-63223

Add mutation of xattrs

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Done
    • Major
    • Morpheus
    • Morpheus
    • query
    • None
    • 0

    Description

      INSERT, UPSERT  options take xattrs and mutate

       

      INSERT/UPSERT INTO airport (KEY     UUID(),
                           VALUE   {"a":1},
                           OPTIONS {"expiration": 2*60*60, "xattrs":{"x1":"x123", "x2":{"b:1}}});
      

       

      UPDATE See if we can do same like meta().expiration convert subdoc mutation? (If SUBDOC API allows xattr's mutation with full document mutation because UPDATE is full document update and xattrs must use subdoc API and all must be done in one mutation) . Yes. From kv team ( subdoc “multi-mutation” is generally the approach to use.  A single mutation has multiple operations attached. First are the subdoc operations and finally is a single mutation to set the “value”/full-doc)

       

       

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              pierre.regazzoni Pierre Regazzoni
              Sitaram.Vemulapalli Sitaram Vemulapalli
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty