Uploaded image for project: 'Couchbase Gateway'
  1. Couchbase Gateway
  2. CBG-1563

Use preserveExpiry during document import

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Duplicate
    • Major
    • Deuterium
    • None
    • SyncGateway
    • Security Level: Public
    • None
    • CBG Sprint 89, CBG Sprint 90

    Description

      Import is currently preserving document expiry by passing the existing expiry value through to the update mutation. In most scenarios this has no additional overhead - the expiry is included on the DCP mutation - but for on-demand import, an additional kv operation is required to retrieve the expiry.

      gocb V2 has the ability to set a preserveExpiry flag on write operations. It would be preferable to take this approach when the sync function isn't explicitly updating the expiry.

      Attachments

        Issue Links

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

          Activity

            People

              isaac.lambat Isaac Lambat
              adamf Adam Fraser
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty