couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "armin weisser" <armin.weis...@virtual-identity.com>
Subject AW: total_rows:1 but rows:[]
Date Thu, 28 Apr 2011 10:13:35 GMT
>> Do you mean "number of pages" (in terms of pagination) when you say "records".
>> That would make sense. So we'd have 1 page but no documents to display.

> when i say record, i normally mean record ;) in couchdb-speek it's a document.
;)


Ok. I think I got it.

So if I'm interested in the question "Are there any documents matching the key?" I have to
manually count the rows or use a reduce function.

Thanks for your help.

Cheers,

Armin


-----Urspr√ľngliche Nachricht-----
Von: Stefan Matheis [mailto:matheis.stefan@googlemail.com] 
Gesendet: Donnerstag, 28. April 2011 12:03
An: user@couchdb.apache.org
Betreff: Re: total_rows:1 but rows:[]

Armin,

On Thu, Apr 28, 2011 at 11:53 AM, armin weisser <armin.weisser@virtual-identity.com>
wrote:
> Do you mean "number of pages" (in terms of pagination) when you say "records".
> That would make sense. So we'd have 1 page but no documents to display.

when i say record, i normally mean record ;) in couchdb-speek it's a document.

it's not directly related to pagination .. of course helpful to calculate pages and so on,
but in general it tells you only how many
(possible) records/documents this view has. and this is (like said) the case when you request
the view without any parameters that would exclude some records/documents.

Regards
Stefan

Mime
View raw message