couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jens Alfke <j...@couchbase.com>
Subject Re: how to fetch the newes document of every type?
Date Fri, 26 Oct 2012 20:55:59 GMT

On Oct 26, 2012, at 12:48 PM, Dirk Heilig <dirk@heilig-online.com> 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
Mime
View raw message