Uploaded image for project: 'Couchbase C client library libcouchbase'
  1. Couchbase C client library libcouchbase
  2. CCBC-12

an interface to paginate across large view results is needed

    Details

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

      Description

      There can be some situations where querying a view returns results that way too large for the client to handle. In these cases, the client library API can allow for one to iterate over Views which have very large results.

      The Ruby client does this with streaming. The Java client does this with traditional pagination:
      http://guide.couchdb.org/draft/recipes.html#pagination

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

        Activity

        Hide
        jan Jan Lehnardt (Inactive) added a comment -

        Here's a first stab at a higher level API for accessing views including pagination:

        http://friendpaste.com/31IVnuVqVw2n5J6q7uJzrg

        Show
        jan Jan Lehnardt (Inactive) added a comment - Here's a first stab at a higher level API for accessing views including pagination: http://friendpaste.com/31IVnuVqVw2n5J6q7uJzrg
        Hide
        avsej Sergey Avseyev added a comment -

        Update with further discussion: https://gist.github.com/1219776

        Currently both kind of pagination could be implemented using libcouchbase_view_execute():

        1. to use streaming look at libcouchbase_view_data_callback() to setup callback which will receive chunks of response.

        2. to use web-style pagination use couchdb view parameters

        Show
        avsej Sergey Avseyev added a comment - Update with further discussion: https://gist.github.com/1219776 Currently both kind of pagination could be implemented using libcouchbase_view_execute(): 1. to use streaming look at libcouchbase_view_data_callback() to setup callback which will receive chunks of response. 2. to use web-style pagination use couchdb view parameters
        Hide
        avsej Sergey Avseyev added a comment -

        Libcouchbase now implements low level routines which allows clients for build any kind of pagination atop of them.

        Show
        avsej Sergey Avseyev added a comment - Libcouchbase now implements low level routines which allows clients for build any kind of pagination atop of them.

          People

          • Assignee:
            avsej Sergey Avseyev
            Reporter:
            ingenthr Matt Ingenthron
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes