couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Lehnardt <...@apache.org>
Subject Re: use view functions to emit changes
Date Tue, 30 Nov 2010 13:58:35 GMT

On 30 Nov 2010, at 14:16, Benoit Chesneau wrote:

> On Tue, Nov 30, 2010 at 1:56 PM, Jan Lehnardt <jan@apache.org> wrote:
>> Hi Benoit,
>> 
>> On 29 Nov 2010, at 23:05, Benoit Chesneau wrote:
>> 
>>> Hi all,
>>> 
>>> Tonight i've written t quick patch that allows the user to use map
>>> view function to filter changes. Here is the patch :
>>> 
>>> https://github.com/benoitc/couchdb/commit/651e29e1bb767fb493bf75497623dae89bf9a5ad
>>> 
>>> thoughts ?
>> 
>> 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?
>> 
>> 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.
>> 
>> Cheers
>> Jan
>> --
>> 
>> 
> 
> Hi,
> 
> 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
-- 



> 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 :
> 
> http://127.0.0.1:5984/testdb/_changes?filter=_view&view=dname/viewname
> 
> On other advantage is that I can also use this in an external indexer.
> 
> - benoƮt.


Mime
View raw message