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

Get filtered data from many views with one request

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • HTTP Interface
    • None
    • Committers Level (Medium to Hard)

    Description

      This patch allows to request any numbers of views by one http request.
      Result of each view can be processed by chain of filters defined in a request.
      Also user can define a filters to united data.

      For example, filter can sort data by any way you want or returns a totaly new data set.

      How to apply patch:
      1) copy patch to couchdb source dir
      2) Extract patch archive by command:
      $ tar -xzvf patch.11.10.08.1.tar.gz
      this add a new file "src/couchdb/couch_httpd_general_view.erl" and patch itself.

      3) apply patch
      $ patch -p0 < 11.10.2008.1.patch

      4) add to local.ini next lines
      [httpd_global_handlers]
      _general_view =

      {couch_httpd_general_view, handle_general_view_req}

      5) make, make install and restart couchdb

      p.s. i've done patch against 703638 revision

      Attachments

        1. test_filters.pl
          3 kB
          Vadim Sukhanov
        2. patch.11.10.08.1.tar.gz
          4 kB
          Vadim Sukhanov

        Activity

          People

            Unassigned Unassigned
            vad Vadim Sukhanov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: