garrensmith opened a new pull request #1376: Add fields to sort based on 
selector
URL: https://github.com/apache/couchdb/pull/1376
 
 
   ## Overview
   
   This is a user experience improvement. If a selector has a sort field set,
   an index is only valid if all the fields in the index are also specified
   in the sort.
   
   If a field is in the selector is constant, eg {age: {$eq: 21}} and it's
   part of the index then we can automatically add it to the sort list because
   it won't affect sorting.
   
   This will then increase the likely hood of the index being chosen and
   make it a little easier for the user.
   ## Testing recommendations
   
   See the tests in the PR for examples
   
   ## 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:
[email protected]


With regards,
Apache Git Services

Reply via email to