couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Anderson (JIRA)" <>
Subject [jira] Commented: (COUCHDB-99) Broken pagination when browsing database
Date Wed, 24 Sep 2008 22:55:44 GMT


Chris Anderson commented on COUCHDB-99:

After some debugging, I'm stumped, but the place to pickup, for anyone who's interested, I
think, is

couchdb_updater:btree_by_id_reduce(reduce, FullDocInfos)

If you log the FullDocInfos, you'll see that some of the arguments as they come in, don't
match the full_doc_info record. Hence, they are not counted in either column.

It seems that docs that come before the startkey are the ones that don't show up as full_doc_info
records in the function, and those which are after the startkey are just fine. I'm not sure
why this would be -- might be in the heart of couch_btree:stream_kp_node, but I can't see
a reason for this behavior. 

Or I could be on the totally wrong track. When this bug is fixed I'll definitely be curious
to read the diffs!

> Broken pagination when browsing database
> ----------------------------------------
>                 Key: COUCHDB-99
>                 URL:
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Administration Console
>    Affects Versions: 0.9
>         Environment: Debian server, Firefox 3 client
>            Reporter: Ciaran Gultnieks
>            Priority: Minor
> The pagination is broken when browsing a database. For example, on initially clicking
to view the database I see "Showing 1-25 of 7357 rows". Then after clicking the 'Next Page'
link, I get "Showing 2-26 of 7357 rows".

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

View raw message