~/talk

It’s Not Always About the Index: The Hidden Secrets of Query Performance

Talkat NDC Copenhagen 2025 · 2025-09-08..09-12· [databases]
links:none on file
slides:none on file

Builds a small online-store schema (stock and price) on MySQL in Docker, runs live queries with explain analyze and cache flush, and shows a single-item lookup dropping from 62 ms to 8 ms when using a B‑tree index but no speedup — sometimes slowdown — when filtering high‑cardinality or large-result conditions. Covers optimizer decisions, B+ tree vs trigram needs for prefix/substring searches, problems with functions/casts on WHERE columns, and fixes like expression index and partial indexes.

AI-written summary · about

  1. 0:00Introduction
  2. 3:00Online store system for NDC
  3. 8:12What is an index
  4. 13:53Creating indexes in MySQL
  5. 19:33Database optimizer
  6. 23:38Indexes slowing queries
  7. 29:02Game: Query breaks index?
  8. 36:50Advanced index tricks
  9. 47:19Summary
~/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.