couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nolan Lawson (JIRA)" <>
Subject [jira] [Created] (COUCHDB-2227) Feature request: _all_docs?exclude_ddocs=true
Date Fri, 18 Apr 2014 18:17:15 GMT
Nolan Lawson created COUCHDB-2227:

             Summary: Feature request: _all_docs?exclude_ddocs=true
                 Key: COUCHDB-2227
             Project: CouchDB
          Issue Type: Wish
      Security Level: public (Regular issues)
            Reporter: Nolan Lawson

Design docs are included in {{\_all_docs}} results, which is by design (hyuk hyuk).  However,
this can be surprising and unwanted behavior for new users, and plus, sometimes it's tricky
to exclude them, e.g. if your docids come both before and after the {{_}} character:


What I would like is a query param like {{exclude_ddocs}}, which defaults to false and would
only return non-design documents, but otherwise function exactly the same.  What {{offset}}
and {{total_rows}} would do in this case is up to you.

Workaround: The best workaround is to do two separate queries, one with the parameters {{endkey=%22_design/%22}}
and the other with {{startkey=%22_design0%22}}. But this is not particularly elegant.

This message was sent by Atlassian JIRA

View raw message