couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Newson <rnew...@apache.org>
Subject Re: how to get last id changed.
Date Wed, 21 Aug 2013 17:17:14 GMT
Hi souza,

This  can't be the correct answer, since you have no control over the
order of items in the values array, you're just selecitng a random
value.

B.


On 21 August 2013 17:56, souza.davirs <souza.davirs@gmail.com> wrote:
> ok, guys, I know it's not for me to post here anymore, but as I reached the
> solution I wanted, I'll post it for future reference.
>
> reduce:
> function(key, values, rereduce){
>     return values[values.length-1];
> }
>
> Thanks to all for the help.
>
>
>
> --
> View this message in context: http://couchdb-development.1959287.n2.nabble.com/how-to-get-last-id-changed-tp7586830p7586872.html
> Sent from the CouchDB Development mailing list archive at Nabble.com.

Mime
View raw message