• Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4.6
    • Component/s: library
    • Security Level: Public
    • Labels:


      View query results may return large amounts of data. We should offer a row callback which returns a JSON string whose contents is a single row.

      There are awesome JSON libraries to do this task, and it's something that I've found myself doing in the Perl client.. so why not move it into libcouchbase and let everyone be happy? .

      Basic idea:
      Two callbacks are put into place. The first is a 'row callback' which receives rows, and the second is a complete callback, at which time any other non-row data is returned as a JSON object.

      So for example

      { "total_rows" : 30,
      "rows" : [

      { "id" : "foo" }


      { "id" : bar" }


      The row callback will first receive the string '

      { "id" : "foo" }

      ', then the second time around, '


      The complete callback will return:

      { "total_rows" : 30 }


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


        There are no comments yet on this issue.


          • Assignee:
            mnunberg Mark Nunberg
            mnunberg Mark Nunberg
          • Votes:
            0 Vote for this issue
            0 Start watching this issue


            • Created:

              Gerrit Reviews

              There are no open Gerrit changes