Optimizer Trace walkthrough Q&A
summary
Q&A clarifies that the optimizer trace usually shows problems using trace explain vs select but prepared statements or rare paths can differ; optimizer switch flags and their values are not exposed in the trace. The trace emits JSON output chosen (no YAML native support) and collecting traces has overhead noticeable so always-on tracing was rejected. A workable idea is a plugin to re-run poor queries with trace enabled and a JSON→YAML converter is an easy contribution.
AI-written summary · about
