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
- causes
-
DOC-12493 Amend sections indicating XATTR manipulation is possible.
- Open
For Gerrit Dashboard: MB-63223 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
215071,1 | MB-63223 Revise SetSubdoc to handle setting the document body | master | gomemcached | Status: MERGED | +2 | +1 |
215072,7 | MB-63223 Add xattrs to INSERT & UPSERT options... | master | query | Status: MERGED | +2 | +1 |
215161,3 | MB-63223 Add unit tests. | master | query | Status: MERGED | +2 | +1 |
215325,4 | MB-63223 Revise implementation to... | master | query | Status: MERGED | +2 | +1 |
215413,1 | MB-63223: regenerate mocks | master | gomemcached | Status: MERGED | +2 | +1 |
215566,4 | MB-63223 Add privs for system XATTR mutations | master | query | Status: MERGED | +2 | +1 |
216214,2 | MB-63223 Revise expression system XATTR determination | master | query | Status: MERGED | +2 | +1 |