Return-Path: Delivered-To: apmail-incubator-couchdb-dev-archive@locus.apache.org Received: (qmail 58519 invoked from network); 24 Sep 2008 22:56:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Sep 2008 22:56:05 -0000 Received: (qmail 36996 invoked by uid 500); 24 Sep 2008 22:56:02 -0000 Delivered-To: apmail-incubator-couchdb-dev-archive@incubator.apache.org Received: (qmail 36960 invoked by uid 500); 24 Sep 2008 22:56:02 -0000 Mailing-List: contact couchdb-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-dev@incubator.apache.org Delivered-To: mailing list couchdb-dev@incubator.apache.org Received: (qmail 36949 invoked by uid 99); 24 Sep 2008 22:56:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Sep 2008 15:56:02 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Sep 2008 22:55:10 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 317B0234C1F3 for ; Wed, 24 Sep 2008 15:55:44 -0700 (PDT) Message-ID: <448345567.1222296944188.JavaMail.jira@brutus> Date: Wed, 24 Sep 2008 15:55:44 -0700 (PDT) From: "Chris Anderson (JIRA)" To: couchdb-dev@incubator.apache.org Subject: [jira] Commented: (COUCHDB-99) Broken pagination when browsing database In-Reply-To: <1894684800.1217936324509.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-99?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12634330#action_12634330 ] 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: https://issues.apache.org/jira/browse/COUCHDB-99 > 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.