I created an index on a nested field (items.type) in my MongoDB collection, and my query is using the index successfully (confirmed via IXSCAN in explain(“executionStats”)). However, when I check the query plan cache using:
db.collection.getPlanCache().list()
it returns an empty list. I expected MongoDB to cache the query plan, but its not appearing
I have tried running the query multiple times