You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Jason Davies (JIRA)" <ji...@apache.org> on 2009/03/16 21:45:50 UTC

[jira] Updated: (COUCHDB-183) No pagination in Futon for reduce views

     [ https://issues.apache.org/jira/browse/COUCHDB-183?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason Davies updated COUCHDB-183:
---------------------------------

    Attachment: futon_reduce_pagination.3.diff

Updated patch to fetch rows_per_page + 1 rows so that the next/prev links can be enabled/disabled appropriately.  This is done for both reduce and non-reduce views as we can't tell which they are until the response is returned.

> No pagination in Futon for reduce views
> ---------------------------------------
>
>                 Key: COUCHDB-183
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-183
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Administration Console
>    Affects Versions: 0.9
>            Reporter: Jason Davies
>            Assignee: Christopher Lenz
>            Priority: Blocker
>             Fix For: 0.9
>
>         Attachments: futon_reduce_pagination.2.diff, futon_reduce_pagination.3.diff, futon_reduce_pagination.diff
>
>
> Futon doesn't support paginating of reduce views at the moment, which can be confusing for new users.  This is due to the difficulty of efficiently working out the total number of rows available from a reduce view.
> I propose displaying something like "Showing x-y rows of unknown" at the bottom, and showing a next/previous link if there are more results to be displayed.  An efficient way to calculate whether there are next/previous results would be to fetch 1 + rows_per_page + 1 (with appropriate offset parameter etc.)
> I did start working on a patch - will post it here when it is done.

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