couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kowsik <kow...@gmail.com>
Subject Top 10 sorted by value...
Date Wed, 01 Oct 2008 00:54:56 GMT
I have a data set where my map reduce returns data like so:

{ key: "a", value: 10 },
{ key: "b", value: 12 },
{ key: "c", value: 1 },
...

Potentially this could be fairly large, even after the reduce. Is
there any way to:

1. sort these by descending values? I only want the top 10.
2. page through them in the sorted order?

I realize that the descending=true works only on the keys.

Thoughts?

K.

Mime
View raw message