couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Moritz Post <moritzp...@gmail.com>
Subject Re: Find latest document by timestamp
Date Fri, 04 Jun 2010 14:46:02 GMT
Thanks you two. That was more easy than what i tried.

Since my timestamps are raw numbers collation shouldn't be a problem.

Thanks again.
Moritz

On Fri, Jun 4, 2010 at 4:42 PM, Alex P <kolosy@gmail.com> wrote:
> 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