Q: what is the definite and reliable way in MongoDB 4.x to figure out whether a query is covered by an index ?
In earlier MongoDB versions this important question was easy to answer via checking ‘indexOnly’ boolean key of the explain() dictionary.
I’ve walked through different sources to answer this question and the only answer I found is:
However neither the answer is unambiguous nor it sounds like be a straight forward to implement for an arbitrary query. If it plays any role, I am on pymongo.
Thank you in advance for answers and ideas!