wohali commented on issue #2124: Mango: do not warn about missing index when 
only _id is being selected against
URL: https://github.com/apache/couchdb/issues/2124#issuecomment-598977953
 
 
   Hey @oliverdain , thanks for writing back.
   
   Technically, what you're saying still requires a main index if you don't 
have a direct index that includes both `_id` and `other_field`. What I think 
would be the best compromise here is that the user can safely ignore the 
warning - but IMO the warning should still be generated. Adding more logic in 
that part of the code could slow down all requests, something we'd really 
prefer not to do.
   
   To me, this feels like a documentation callout - if you'd like to open a PR 
in https://github.com/apache/couchdb-documentation and explain that the warning 
can be safely ignored in this scenario, I'd be happy to merge that.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to