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

XDCR: Filtered Replication: JavaScript function(doc, meta)

    XMLWordPrintable

Details

    • Story
    • Resolution: Won't Do
    • Major
    • None
    • 5.1.0
    • XDCR
    • None
    • Currently we have replication filter by key.
      One can configure regex of keys to be replicated (others will not be replicated).

      Currently Value is also available in same point code checks the Key.

    Description

      Idea

      Allow JavaScript filter of XDCR replication, based on both: meta data and document value.

      Possible interface: same as that of map view function.

      Example (in our data model)

      function(doc, meta) {
        return doc.options.profile_transfer.state=="enabled" && options.profile_transfer.params.dst=="ls1"
      }
      

      Attachments

        Issue Links

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

          Activity

            People

              chaitra.ramarao Chaitra Ramarao (Inactive)
              paf Alexander Petrossian (PAF)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty