willholley commented on issue #866: Fix incorrect index selection when sort 
specified
URL: https://github.com/apache/couchdb/pull/866#issuecomment-334706004
 
 
   @tonysun83 If a `sort` is specified, perhaps it's reasonable to assume that 
the user expects the field to exist in all documents that are returned. To 
preserve existing behaviour, we could implicitly add an `{"$exists": true}` 
predicate for each sort field to the selector. 
   
   This would allow us to safely validate the selector/index combination 
against `is_usable` whilst preserving existing behaviour as much as possible.
 
----------------------------------------------------------------
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