Uploaded image for project: 'Couchbase Go SDK'
  1. Couchbase Go SDK
  2. GOCBC-1023

Internal API for raw ViewRow retrieval

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.0
    • Component/s: library
    • Labels:
      None

      Description

      Sync Gateway would like the ability to retrieve view rows as raw bytes, to avoid multiple unmarshaling steps, and to more easily migrate the existing implementation.  

      Have reviewed with Charles Dixon, and a result.Internal().NextBytes() API was proposed - that would work well.

        Attachments

        For Gerrit Dashboard: GOCBC-1023
        # Subject Branch Project Status CR V

          Activity

          Hide
          adamf Adam Fraser added a comment -

          Yes, we have a few places we're using view query result meta today.

          Show
          adamf Adam Fraser added a comment - Yes, we have a few places we're using view query result meta today.
          Hide
          charles.dixon Charles Dixon added a comment -

          OK, we would probably want to expose that on the type returned by Raw() as the raw bytes so you'd have to parse it yourselves due to aforementioned invalidation of the underlying result (the semantics of not doing this make things somewhat more complicated). Would that be an issue?

          Show
          charles.dixon Charles Dixon added a comment - OK, we would probably want to expose that on the type returned by Raw() as the raw bytes so you'd have to parse it yourselves due to aforementioned invalidation of the underlying result (the semantics of not doing this make things somewhat more complicated). Would that be an issue?
          Hide
          adamf Adam Fraser added a comment -

          Exposing meta on the Raw() return type and unmarshalling it on our end is fine.

          Show
          adamf Adam Fraser added a comment - Exposing meta on the Raw() return type and unmarshalling it on our end is fine.
          Hide
          build-team Couchbase Build Team added a comment -

          Build sync_gateway-3.0.0-96 contains gocb commit e29525f with commit message:
          GOCBC-1023: Add interfaces for accessing raw bytes from http services

          Show
          build-team Couchbase Build Team added a comment - Build sync_gateway-3.0.0-96 contains gocb commit e29525f with commit message: GOCBC-1023 : Add interfaces for accessing raw bytes from http services
          Hide
          build-team Couchbase Build Team added a comment -

          Build couchbase-server-7.0.0-4715 contains gocb commit e29525f with commit message:
          GOCBC-1023: Add interfaces for accessing raw bytes from http services

          Show
          build-team Couchbase Build Team added a comment - Build couchbase-server-7.0.0-4715 contains gocb commit e29525f with commit message: GOCBC-1023 : Add interfaces for accessing raw bytes from http services

            People

            Assignee:
            charles.dixon Charles Dixon
            Reporter:
            adamf Adam Fraser
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes

                  PagerDuty