You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2018/11/07 14:29:32 UTC

[GitHub] garrensmith opened a new pull request #1719: Don't use $not to validate use of index

garrensmith opened a new pull request #1719: Don't use $not to validate use of index
URL: https://github.com/apache/couchdb/pull/1719
 
 
   ## Overview
   
   When mango is selecting an index for a query, previously it would consider a field with a $not to be 
   acceptable to validate a field and increase the chance of that index being selected. That isn't quite correct. It is better to ignore a field and condition that contains a $not. It isn't proof enough that the index is usable for the query.
   
   
   
   ## Testing recommendations
   
   All tests should pass. Queries using $not should use _all_docs unless more selectors in the query help select an index.
   
   ## Checklist
   
   - [x] Code is written and works correctly;
   - [x] Changes are covered by tests;
   - [ ] Documentation reflects the changes;
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services