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

Documentation missing view emit _id/_rev tricks for ?include_docs=true details

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.5.0
    • Documentation
    • None

    Description

      Both the wiki and the official documentation are missing the indirect "join" fetch possible via include_docs when the view emits another doc's _id e.g. http://stackoverflow.com/a/6059447/179583, http://stackoverflow.com/a/3035522/179583, http://stackoverflow.com/a/2683228/179583 — apparently this was only in the release notes and/or on the Couchbase blog at one time.

      Also the official documentation is missing a complete explanation of this note in the wiki:

      "If you want to alleviate [stale view vs database inconsistency] concerns you should emit an object with a _rev attribute as in emit(key,

      {"_rev": doc._rev}

      )." — http://wiki.apache.org/couchdb/HTTP_view_API#Querying_Options

      Will this cause the old rev to be fetched? What if it's no longer available?

      Attachments

        Activity

          People

            kxepal Alexander Shorin
            natevw Nathan Vander Wilt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: