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.
