You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by gi...@git.apache.org on 2017/09/05 09:57:44 UTC

[GitHub] willholley commented on issue #791: Check all indexed fields are in the selector

willholley commented on issue #791: Check all indexed fields are in the selector
URL: https://github.com/apache/couchdb/pull/791#issuecomment-327129665
 
 
   JSON indexes only index documents where all the fields are non-null. I think this PR needs to account for `null` comparisons when matching the fields in the selector against the index. For example, if I have an index on:
   
   ```
   ["user_id", "age"]
   ```
   
   and a selector `{"user_id": {"$lt":8}, "age": { "$gte": null }}` then the index would not be valid, even though the fields in the selector match the index, because using the index would skip any documents where `age` is null.
   
 
----------------------------------------------------------------
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