~/talk

Analytical Queries in MySQL

Talkat Percona Live Online 2020 · 2020-10-20..10-21· [databases]
slides:none on file

Benchmarks use TPC‑H queries and compare MySQL 5.7, MySQL 8.0, MariaDB and PostgreSQL on the same data; tpch query 21 runs ~90% faster in 8.0 after optimizer and semijoin fixes, query 17 drops ~80% by using window functions, and some queries fall back slower in 8.0. Disk‑bound runs show batch key access cuts IO by >10× on several queries. Using hash join (hiding indexes) or larger join buffers yields two‑thirds reductions or more; parallel execution on 32 cores shows >16× speedups.

AI-written summary · about

  1. 0:00Intro
  2. 1:09OLTP vs OLAP
  3. 2:12TPC-H vs DBT-3
  4. 3:56TPC-H Schema
  5. 4:22TPC-H Results (Scale Factor 10)
  6. 5:35Configuration Details
  7. 6:53MySQL 8.0 vs MySQL 5.7
  8. 9:18Disk-Bound Queries
  9. 11:01Batched Key Access (BKA)
  10. 13:07Effect of Join Buffer Size
  11. 13:45How to Tune Your Complex Queries
  12. 14:54Full Table Scan vs Index Range Scan
  13. 15:46Optimizer Hints - Change Join Order
  14. 17:04MySQL Statistics - Improve Accuracy
  15. 19:47Rewriting Queries
  16. 22:20Hash join vs BKA
  17. 22:49When to Use Hash Join?
  18. 23:52Impact of Join Buffer Size
  19. 26:14MySQL Wishlist for Complex Queries
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.