Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-1061

More efficient _changes?include_docs=true and _all_docs?include_docs=true

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0.3, 1.1, 1.2
    • None
    • None

    Description

      When using the changes stream with the option include_docs set to true, after having the #doc_info record of a document, we open the document by its ID instead of using the #doc_info record. This is not optimal since opening the doc by its ID implies traversing the by-id B-Tree to find a #full_doc_info record and to finally convert it into a #doc_info record.

      The following patch fixes this.

      Attachments

        1. COUCHDB-1061.patch
          4 kB
          Filipe David Borba Manana
        2. COUCHDB-1061-2.patch
          7 kB
          Filipe David Borba Manana
        3. COUCHDB-1061-2.patch
          7 kB
          Filipe David Borba Manana

        Activity

          People

            fdmanana Filipe David Borba Manana
            fdmanana Filipe David Borba Manana
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: