You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2020/05/14 01:07:16 UTC

[GitHub] [couchdb-fauxton] Antonio-Maranhao commented on pull request #1075: Replication paginate

Antonio-Maranhao commented on pull request #1075:
URL: https://github.com/apache/couchdb-fauxton/pull/1075#issuecomment-628325970


   Same for me, unfortunately. IIRC, it still requires reworking how the docs are retrieved because `/_replicator/_all_docs?startkey=%22_designZ%22` doesn't return any docs that start with lowercase or digits. 
   @popojargo suggested above using two API calls but that will likely make it harder to paginate correctly. 
   @garrensmith suggested using a Mango query instead. That's probably the best approach. Something like this would do:
   ```
   {
      "selector": {
         "$or": [
            {
               "_id": {
                  "$lt": "_design"
               }
            },
            {
               "_id": {
                  "$gt": "_design0"
               }
            }
         ]
      }
   }
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org