hello, but it will not always be ordered by id?
Davi Roberto de Souza (12) 9736-2252 Skype: souza.davirs 2013/8/21 Robert Newson-2 [via CouchDB Development] < [email protected]> > 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 <[hidden > email]<http://user/SendEmail.jtp?type=node&node=7586873&i=0>> > 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. > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://couchdb-development.1959287.n2.nabble.com/how-to-get-last-id-changed-tp7586830p7586873.html > To unsubscribe from how to get last id changed., click > here<http://couchdb-development.1959287.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=7586830&code=c291emEuZGF2aXJzQGdtYWlsLmNvbXw3NTg2ODMwfDYzNjE1Mjc0OA==> > . > NAML<http://couchdb-development.1959287.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://couchdb-development.1959287.n2.nabble.com/how-to-get-last-id-changed-tp7586830p7586901.html Sent from the CouchDB Development mailing list archive at Nabble.com.
