couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Kocoloski <kocol...@apache.org>
Subject Re: Improving pagination for views
Date Sun, 29 Nov 2009 00:38:32 GMT
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
Mime
View raw message