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

notification of collections UID changes

    XMLWordPrintable

Details

    Description

      I am about to implement a cache in the query engine for mapping collection names to collection UIDs. To help keep it correct, I would like the ns_server to provide a streaming interface that notifies the query engine of changes to the collection manifest of each bucket. Right now the query engine only needs to be notified of each new manifest UID, not the manifest contents itself.
       
      There is already a streaming interface for changes to buckets at /pools/default/bucketsStreaming/<bucketname> which could be used for this purpose, but it’s a bit heavyweight. It has a lot of information about each bucket, and the query engine does quite a dramatic refresh when it receives a notice from this interface. Since the query engine should not do this every time a new collection is added or dropped, I would like to have a more specialized interface that provides notification of manifest UID changes.
       
      I’m thinking the connection point could be /pools/default/bucketsStreaming/<bucketname>/collections, and the updates it provides could be of this format:
       

      { “uid” : ”7657a” }

       
      How does that fit with other plans for the ns_server?

      Attachments

        Issue Links

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

          Activity

            People

              artem Artem Stemkovski
              johan.larson Johan Larson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty