Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 98323 invoked from network); 30 Nov 2010 13:59:04 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Nov 2010 13:59:04 -0000 Received: (qmail 46079 invoked by uid 500); 30 Nov 2010 13:59:04 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 45956 invoked by uid 500); 30 Nov 2010 13:59:03 -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 45947 invoked by uid 99); 30 Nov 2010 13:59:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 13:59:02 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=NORMAL_HTTP_TO_IP,SPF_NEUTRAL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [80.244.253.218] (HELO mail.traeumt.net) (80.244.253.218) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 13:58:57 +0000 Received: from dahlia.local (p5799EB39.dip.t-dialin.net [87.153.235.57]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.traeumt.net (Postfix) with ESMTPSA id C3BBA3C2C3 for ; Tue, 30 Nov 2010 14:58:35 +0100 (CET) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1082) Subject: Re: use view functions to emit changes From: Jan Lehnardt In-Reply-To: Date: Tue, 30 Nov 2010 14:58:35 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <21388908-6844-4B6A-ACCF-5A891E8EDCF5@apache.org> References: <2A21D31B-3226-45BA-A2DE-39C7344C7A17@apache.org> To: dev@couchdb.apache.org X-Mailer: Apple Mail (2.1082) On 30 Nov 2010, at 14:16, Benoit Chesneau wrote: > On Tue, Nov 30, 2010 at 1:56 PM, Jan Lehnardt wrote: >> Hi Benoit, >>=20 >> On 29 Nov 2010, at 23:05, Benoit Chesneau wrote: >>=20 >>> Hi all, >>>=20 >>> Tonight i've written t quick patch that allows the user to use map >>> view function to filter changes. Here is the patch : >>>=20 >>> = https://github.com/benoitc/couchdb/commit/651e29e1bb767fb493bf75497623dae8= 9bf9a5ad >>>=20 >>> thoughts ? >>=20 >> Thanks for the patch, but could you explain what problem this solves, >> where this is useful, how it works and what problems there might be? >>=20 >> I'd like to see some more description of what a patch does before >> looking at it to see if it does what it is supposed to. >>=20 >> Cheers >> Jan >> -- >>=20 >>=20 >=20 > Hi, >=20 > That's what we discussed the other day on irc. All dev discussion must happen on this mailing list to count. It's nice we can do some high-bandwidth exchange on IRC, but that's not where we can afford to hold any important discussion because it is not transparent to everybody on this list. Cheers Jan --=20 > It doesn't do more than > "use map view function to filter changes instead of duplicating the > effort in writing a filter function that does the same, which is > apparently done a lot. So each time a value could be emitted, a change > is returned. The url is : >=20 > http://127.0.0.1:5984/testdb/_changes?filter=3D_view&view=3Ddname/viewna= me >=20 > On other advantage is that I can also use this in an external indexer. >=20 > - beno=EEt.