~/talk

ANALYZE for statements: MariaDB’s hidden gem

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

MariaDB’s ANALYZE for statements actually runs the query, discards results and reports r_rows and r_filtered so you can compare estimates vs reality; ANALYZE FORMAT=JSON adds r_loops and r_total_time_ms showing where time is spent (example: many tiny index lookups causing 1.5M loops and 3.5s read time). Overhead is typically under 10% (worst artificial case 10%); rerun ANALYZE TABLE if stats are missing; wrap in BEGIN; ROLLBACK; to avoid changes.

AI-written summary · about

  1. 0:00Intro
  2. 0:16ANALYZE for statements
  3. 0:57The plan
  4. 1:13Background: EXPLAIN
  5. 2:21ANALYZE vs EXPLAIN
  6. 2:55Tabular ANALYZE statement
  7. 4:11Interpreting r_rows (2)
  8. 5:41Interpreting r_filtered
  9. 6:54r_filtered and query plans
  10. 7:40Tabular ANALYZE summary
  11. 8:01Basics
  12. 9:11A complex query: join
  13. 10:30A complex query: subquery
  14. 12:51Sorting (2)
  15. 13:11ANALYZE and UPDATES
  16. 13:53Overhead of ANALYZE
  17. 14:43ANALYZE and slow query log
  18. 16:12ANALYZE FORMAT=JSON Summary
  19. 16:42EXPLAIN ANALYZE in MySQL 8
  20. 19:36Handling for UPDATE/DELETE
  21. 20:01MySQL's EXPLAIN ANALYZE summary
  22. 21:11Final conclusions
~/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.