steevej
(Steeve Juneau)
3
In principle, unless you are a couple of version behind on your local cluster, it is the same code.
So, … suspense … I suspect you made a typo on the local cluster.
It is hard to pinpoint because your output is not showing any collection name nor database name.
The missing part of the explain plan that could help is the queryPlanner that shows the namespace. But it looks like the find was performed against the appropriate database/collection as we see with docsExamined:5_000_000.
The index might have been created in another database or collection.
Typos are often ignored as the possible cause of misbehaviour and they are most of the time. I have no data to backup the previous sentence so it is just an opinion.
1 Like