Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-13645 Implement Sub-document API in memcached
  3. MB-16356

[Subdoc] Implement expiry support for mutation commands

    XMLWordPrintable

Details

    • Technical task
    • Resolution: Fixed
    • Major
    • 4.5.0
    • 4.5.0
    • memcached
    • Security Level: Public
    • None

    Description

      As per email discussions with Patrick Varley, we should add support for setting expiry to Subdocument mutation commands.

      I been thinking a lot about expiries with sub doc and I have come to the collusion that subdoc should support updating expiry. The main reasons being:

      The sprit of sub doc is to reduce bandwidth. Without the ability to set the TTL the developer will have to use two operates (subdoc then a touch) which will in turn create two mutations on the DCP stream (It might get de-duplicated in the snapshot).
      All other mutation operations apart from prepend/append allows for the ttl to be updated. By supporting it in subdoc it improves the developer experience as there is less code to write. Users(MB-12384) have already requested that prepend/append support appends.

      Full details to be added to the subdoc protocol specification (https://docs.google.com/document/d/1hOQIPMTEFTmdNgWftSZddMtoc57Zi_yuKJ8BW-QJSiQ/edit#)

      Attachments

        Issue Links

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

          Activity

            People

              drigby Dave Rigby (Inactive)
              drigby Dave Rigby (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty