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

Implementation of the Get Sequence Numbers command

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Major
    • 4.0.0
    • 4.0.0
    • couchbase-bucket
    • Security Level: Public
    • None
    • Mar 9 - Mar 27

    Description

      The view-engine needs to retrieve the sequence numbers quite frequently. Currnetly it's done through the stats command, but that's fairly slow. Nimish did some profiling and found out that this is certainly a bottlneck for `stale=false` requests, especially when no data changed.

      Hence I'd like to have a Get Sequence Numbers command to speed that up. The advantage of a special command are:

      • It's a single packet response, not one packet per vBucket
      • The data is binary encoded, hence less parsing overhead
      • The view engine only needs the sequence numbers from the server it is connected to, not all sequence numbers. This should also make things faster as you don't need to gather the information from the whole cluster

      I've made a pull request to the dcp-documentation repository [1] which adds the documentation about the command. It should include everything that is needed to implement it.

      [1]: https://github.com/couchbaselabs/dcp-documentation/pull/15

      Attachments

        Issue Links

          For Gerrit Dashboard: MB-14256
          # Subject Branch Project Status CR V

          Activity

            People

              trond Trond Norbye
              vmx Volker Mische
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty