couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastian Cohnen <sebastiancoh...@googlemail.com>
Subject Re: Find latest document by timestamp
Date Fri, 04 Jun 2010 14:22:26 GMT
create a view, emit the timestamp and query the view with descending=true and limit=1 (see
http://wiki.apache.org/couchdb/HTTP_view_API#Querying_Options)

On 04.06.2010, at 16:08, Moritz Post wrote:

> Hi CouchPeople
> 
> That might be an easy one but i can't figure it out just yet.
> 
> I have a set of documents, all created at different points in time as
> taged by a stimestamp (in UNIX format). How can i now get the very
> latest of these documents?
> 
> Thanks for any help.
> 
> Greets
> Moritz Post


Mime
View raw message