You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "willholley (via GitHub)" <gi...@apache.org> on 2023/09/12 15:25:07 UTC

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

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' format (barring any fields that might be obsolete by the fact the index is known already).
   
   This could work, though only for indexes created via the `_index` endpoint given we need the index definition in a format that allows `_find` to reason with the schema. For JS/other indexes we could return a `400` status code as we would for an invalid index.
   
   > In this formulation I think 'execution stats' might not be emitted, since the number of rows returned would always match the number examined (as they've always done with _view).
   
   I don't think this is true unless you're proposing to limit `_find` to start_key/end_key derivation only, which would represent a large step down in functionality from the database-level `_find`?
   
   
   
   
   
   
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org

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