couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Lehnardt (JIRA)" <j...@apache.org>
Subject [jira] Commented: (COUCHDB-82) total_rows should be the number of rows returned if the count parameter is not supplied
Date Tue, 09 Sep 2008 10:25:44 GMT

    [ https://issues.apache.org/jira/browse/COUCHDB-82?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12629437#action_12629437
] 

Jan Lehnardt commented on COUCHDB-82:
-------------------------------------

CouchDB streams view results directly from the index to the client, there is no way to know
in advance how big a result set is and buffering everything to do a count is not a good idea.
won't fix. a workaround is a reduce function to do the counting for you.

> total_rows should be the number of rows returned if the count parameter is not supplied
> ---------------------------------------------------------------------------------------
>
>                 Key: COUCHDB-82
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-82
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Database Core
>            Reporter: antirobotrobot
>
> I need the ability to paginate though a subset of a view. I make view requests with startkey,
endkey, and count. I would like to paginate through these rows, but I cannot know the total
rows between startkey and endkey without making an extra view which adds up the totals.
> It would be much better if total_rows, returned in the view, reflected the number of
rows that would be returned had the count parameter not been supplied.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message