~/talk

Optimizer Trace walkthrough

Talkat MariaDB Server Fest 2020 · 2020-09-14..09-20· [databases]
slides:none on file

Introduces how to enable and read the optimizer trace (set optimizer_trace=1 then SELECT from information_schema.optimizer_trace), explains trace is a single-session JSON blob saved in memory, and shows how to use JSON_EXTRACT/JSON_DETAILED or GREP to inspect elements like ref_optimizer_key_uses and considered_execution_paths to see why an index or join order is chosen or pruned; covers range optimizer, loose index scan decisions, join cost estimates, differences vs MySQL (nested traces and flags), and recent MariaDB fixes to printed conditions.

AI-written summary · about

  1. 0:00Introduction to Optimizer Trace
  2. 0:52Goals of Optimizer Trace
  3. 4:52How to use Optimizer Trace
  4. 8:00Trace contents and JSON basics
  5. 12:25Ref optimizer key uses
  6. 15:09Range optimizer details
  7. 18:00Loose index scan optimization
  8. 19:32Join optimizer explained
  9. 26:58Other trace elements overview
  10. 28:06MySQL Optimizer Trace comparison
  11. 36:09Future plans and conclusion
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.