[GitHub] [couchdb] willholley commented on pull request #4710: feat(`mango`): strict index selection

2023-09-27 Thread via GitHub
willholley commented on PR #4710: URL: https://github.com/apache/couchdb/pull/4710#issuecomment-1737462585 @rnewson https://github.com/apache/couchdb/pull/4710#issuecomment-1735317072. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to

[GitHub] [couchdb] willholley commented on pull request #4710: feat(`mango`): strict index selection

2023-09-27 Thread via GitHub
willholley commented on PR #4710: URL: https://github.com/apache/couchdb/pull/4710#issuecomment-1737168382 I agree with changing the behavior of `use_index`, but I'm less keen on overloading it to removing the use of the `_all_docs` index. There are legitimate reasons to use `_all_docs`

[GitHub] [couchdb] willholley commented on pull request #4710: feat(`mango`): strict index selection

2023-09-22 Thread via GitHub
willholley commented on PR #4710: URL: https://github.com/apache/couchdb/pull/4710#issuecomment-1731563627 `$regex` gets converted into an `$exists: true` predicate for index selection, so an index can be used to optimize it in some cases, though it's still going to be a range scan on

[GitHub] [couchdb] willholley commented on pull request #4710: feat(`mango`): strict index selection

2023-09-12 Thread via GitHub
willholley commented on PR #4710: URL: https://github.com/apache/couchdb/pull/4710#issuecomment-1715940637 > Rather than an additional request body parameter to /db/_find, perhaps we could add the index to the url path, but still end in _find? The request and response body stay in 'find'

[GitHub] [couchdb] willholley commented on pull request #4710: feat(`mango`): strict index selection

2023-08-02 Thread via GitHub
willholley commented on PR #4710: URL: https://github.com/apache/couchdb/pull/4710#issuecomment-1661679783 Appreciating the difficulties with augmenting existing endpoints, I think it's worth considering adding "selector" and "fields" support to the existing _all_docs, view and search