incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex P <kol...@gmail.com>
Subject Re: Find latest document by timestamp
Date Fri, 04 Jun 2010 14:42:19 GMT
Just be sure to check that your timestamps get collated correctly.

On Jun 4, 2010, at 9:22 AM, Sebastian Cohnen <sebastiancohnen@googlemail.com 
 > wrote:

> 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