couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matteo Caprari <>
Subject _list function total_rows parameter always reports full view size?
Date Wed, 16 Dec 2009 22:44:40 GMT

I was trying to use head.total_rows inside a _list function, expecting
to find there
the number of rows that I'll find in the iterator.
I was puzzled to find that instead it always reports the full size of
the view being listed, evem if I limit
the view to a single key

{"total_rows": 37,"offset": null}

Is this teh expected behviour?

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

Thanks :)
:Matteo Caprari

View raw message