couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Davis <paul.joseph.da...@gmail.com>
Subject Re: Improving pagination for views
Date Sun, 29 Nov 2009 00:43:03 GMT
On Sat, Nov 28, 2009 at 7:38 PM, Adam Kocoloski <kocolosk@apache.org> wrote:
> On Nov 24, 2009, at 2:59 PM, Paul Davis wrote:
>
>> Or using the standard row count reduce:
>>
>> function(keys, values, rereduce) {
>>  if(rereduce) return sum(values);
>>  return values.length;
>> }
>>
>> It occurs to me that we should add a _row_count Erlang reduce function
>> as its slightly different than _sum.
>
> Hi Paul, it occurred to someone else, too: "_count" is already a built-in, defined as
above.  Best,
>
> Adam

Well played.

Mime
View raw message