Update query-optimization.txt#2162
Conversation
The word "returned" implies that you can workaround this limitation using a projection, but in fact you cannot (per SERVER-2104).
|
Hi -- isn't the current page and the SERVER-2104 stating that if you have an index |
|
I agree with the above example, buy my example is different. {code}
Since the indexed field in the subdocument is not returned, I would expect the query to be covered, but it is not covered. The phrase "any of the returned index fields are fields in subdocuments" implies that you can project away a subdocument containing an indexed field and still achieve a covered query. |
|
ah -- I see. How about "If any of the indexed field in the query predicate or returned in the projection ..." |
|
Yes, that sounds good! |
|
merged with changes as discussed. thank you! |
(cherry picked from commit b2687b7)
The word "returned" implies that you can workaround this limitation using a projection, but in fact you cannot (per SERVER-2104).