During the investigation of a slow query, the query planner used different plans when running explain: "queryPlanner" vs. explain: "executionStats". The reason that this happened is because the original winning plan ran out of memory in the "executionStats" mode, and so the planner fell back to the backup plan. It would be helpful if the explain output included some indication when this happens.
- links to