[
https://issues.apache.org/jira/browse/COUCHDB-1960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13851782#comment-13851782
]
Dave Cottlehuber commented on COUCHDB-1960:
-------------------------------------------
If I read this correctly, each _all_dbs ? limit query does a whole directory
scan each time, and we don't cache this. Is this risky? Other than that concern
I am +1.
nitpicks:
DEFAULT_LIMIT of 16#10000000 could be given a more descriptive/enlightening
name, maybe MAXIMUM_DBS_RETURNED or something?
Also it needs some doc entry + ./share/doc/src/whatsnew/1.6.rst updated.
> Provide pagination for /_all_dbs
> --------------------------------
>
> Key: COUCHDB-1960
> URL: https://issues.apache.org/jira/browse/COUCHDB-1960
> Project: CouchDB
> Issue Type: Improvement
> Components: Fauxton, HTTP Interface
> Reporter: Benjamin Young
>
> The database-per-user design pattern has increased in popularity and
> consequently causes long lists of databases when one hits {{/_all_dbs}}
> To keep this sane, we need some pagination.
> {{?skip=10&limit=10}} style seems to be the simplest to implement (and there
> should be existing code from Cloudant for this one).
> Thanks!
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)