Concept Flow - Explain plan analysis (queryPlanner, executionStats)
Run explain() on query
queryPlanner analyzes query
queryPlanner outputs plan details
executionStats collects runtime info
executionStats outputs execution metrics
User reviews plan and stats for optimization
The explain() command first analyzes the query plan, then runs the query to collect execution stats, helping users understand and optimize query performance.