Uploaded image for project: 'Couchbase Java Client'
  1. Couchbase Java Client
  2. JCBC-910

View results can be out of order when includeDocs, due to flatMap

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 2.2.5
    • 2.2.3
    • Views
    • None

    Description

      View result with includeDocs = true trigger an additional operation for each row (fetching the document). Depending on the duration of each fetch, it could change the order in which the results are emitted because the code uses flatMap (which will emit the rows as the documents arrive, not in initial order).

      It should be made so that the rows are emitted in view order, but without sacrificing too much of the flatMap performance.

      Attachments

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

        Activity

          People

            simonbasle Simon Baslé (Inactive)
            simonbasle Simon Baslé (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty