couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Davis <paul.joseph.da...@gmail.com>
Subject Re: _list function total_rows parameter always reports full view size?
Date Wed, 16 Dec 2009 22:49:47 GMT
> {"total_rows": 37,"offset": null}
>
> Is this teh expected behviour?

Yes, total rows is the number of rows in the view.

> If so, what's a good way to know how many rows will the iterator return?

There's no way to tell that inside the list itself. The easiest way to
get the number of rows between any two arbitrary keys is to use a row
count reduce.

HTH,
Paul Davis

Mime
View raw message