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

Simplify Query Server interface and Design Handlers

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.11
    • JavaScript View Server
    • None

    Description

      This patch refactors list, show, update, filter, and view handling to have a unified interface for loading the design document and functions from it. It is a step on the path to removing a lot of function src passing overhead from the view server protocol.

      The patch also removes some old part of the API while improving other parts of the API.

      The big changes:

      Load the design document before handing it to the design document handlers. This removes a lot of duplicated code.

      Remove /db/_view handler. I think it's in our interest to remove the last bits of the old-style API before 0.11.

      I also clean up some rough edges in the API.

      I plan to commit this patch soon, but want to give people an opportunity to look it over.

      Attachments

        1. show_handle.404-2.patch
          7 kB
          Benoit Chesneau
        2. show_handle.404.diff
          6 kB
          Benoit Chesneau
        3. ddoc_qs.patch
          134 kB
          John Christopher Anderson
        4. design_handlers.patch
          34 kB
          John Christopher Anderson

        Activity

          People

            jchris John Christopher Anderson
            jchris John Christopher Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: