couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dirk Heilig <>
Subject Re: how to fetch the newes document of every type?
Date Fri, 26 Oct 2012 21:01:32 GMT
i've already thought about that, bis in my example, ill might get the result:

world-news from yesterday
world-news from 2 days ago
sports-news from last weekend

but i want exacly one of a kind, not the last 3 once

2012/10/26 Jens Alfke <>:
> On Oct 26, 2012, at 12:48 PM, Dirk Heilig <> wrote:
>> what i need is a view, and the magic wat to query this view to get the
>> lastest news of any kind, how do i manage this?
> Emit the ‘created’ property as the key. Then query the view in descending order with
a limit.
> —Jens

View raw message