Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 66104 invoked from network); 7 Jun 2009 04:24:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Jun 2009 04:24:20 -0000 Received: (qmail 14147 invoked by uid 500); 7 Jun 2009 04:24:32 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 14067 invoked by uid 500); 7 Jun 2009 04:24:31 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 14057 invoked by uid 99); 7 Jun 2009 04:24:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Jun 2009 04:24:31 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Jun 2009 04:24:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 94696234C046 for ; Sat, 6 Jun 2009 21:24:07 -0700 (PDT) Message-ID: <928140312.1244348647607.JavaMail.jira@brutus> Date: Sat, 6 Jun 2009 21:24:07 -0700 (PDT) From: "Mark Hammond (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Updated: (COUCHDB-377) allow native view servers In-Reply-To: <9651423.1244348647364.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-377?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mark Hammond updated COUCHDB-377: --------------------------------- Attachment: native_query_servers.patch > allow native view servers > ------------------------- > > Key: COUCHDB-377 > URL: https://issues.apache.org/jira/browse/COUCHDB-377 > Project: CouchDB > Issue Type: Improvement > Reporter: Mark Hammond > Attachments: native_query_servers.patch > > > There has been some discussion on IRC etc about how to support 'native' view servers, such as 'erlview' in a generic way. Currently using erlview requires you to modify couch. > I'm attaching a patch as a first attempt at supporting this. In summary, the patch now looks up a new 'native_query_servers' config file section for a list of view_server names with a {Module, Func, Args} style string specifying the entry-point of the view server. The code now passes an additional atom around indicating if the PID is 'native' or 'external', and map_docs takes advantage of this to avoid the json step. This patch allows erlview to work for me, but in theory any erlang code could be used here. > I'm very new at erlang - please let me know if I should make stylistic or other changes, or indeed if I should take a different approach completely. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.