couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Shorin (JIRA)" <j...@apache.org>
Subject [jira] [Created] (COUCHDB-2188) Pagination is broken if map fun emits more rows than page size is
Date Thu, 06 Mar 2014 15:42:42 GMT
Alexander Shorin created COUCHDB-2188:
-----------------------------------------

             Summary: Pagination is broken if map fun emits more rows than page size is
                 Key: COUCHDB-2188
                 URL: https://issues.apache.org/jira/browse/COUCHDB-2188
             Project: CouchDB
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: Fauxton
            Reporter: Alexander Shorin


1. Create new database with single doc - his content doesn't matters
2. Create the view that emits multiple rows for single doc, like:

{code}
function(doc){
  for(var i=0; i < 20; i++){
    emit(doc._id, i);
  }
}
{code}

Yes, too synthetic, but you got the idea. 

3. Try to navigate thought results with page size 5 and 10 - you'll always browse the same
content

Fauxton @ [4e60f0b|https://git-wip-us.apache.org/repos/asf?p=couchdb.git;a=commit;h=4e60f0b]



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message