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

collatejson optimization: tailored output for collatejson.Decode()

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Major
    • feature-backlog
    • feature-backlog
    • secondary-index
    • Security Level: Public
    • None

    Description

      Sarath Lakshmanan suggested the following optimization,

      • codec.Decode() returns JSON output, for couchbase 2i project
        the JSON string will always the following JSON format.
        [expr1, docid] - for simple key
        [expr1, expr2, ..., docid] - for composite key
        it would be a good optimization to implement a variant of Decode()
        that will return as,
        [expr1], docid - for simple key
        [expr1, expr2 ...], docid - for composite key

      In scan-coordinator, this will help avoid repeated Marshal() and Unmarshal() on fdb results.

      Attachments

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

        Activity

          People

            prataprc Pratap Chakravarthy (Inactive)
            prataprc Pratap Chakravarthy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty