图解 MongoDB 09|explain 再读:从 queryPlanner 到 executionStats
explain 被当成「看一眼有没有走索引」,但它分 queryPlanner、executionStats、allPlansExecution 三层。本文讲清楚每层看什么,以及 totalKeysExamined 和 totalDocsExamined 这对指标怎么判断查询健康。
1 篇文章
explain 被当成「看一眼有没有走索引」,但它分 queryPlanner、executionStats、allPlansExecution 三层。本文讲清楚每层看什么,以及 totalKeysExamined 和 totalDocsExamined 这对指标怎么判断查询健康。