~/talk

MySQL Schema Review

Talkat Percona Tech Days 2020 · 2020-08-05..09-18· [databases]
links:none on file
slides:none on file

Demo creates two identical tables with 4 million rows and compares INT vs BIGINT, finding about 250 MB extra for BIGINT; removing a duplicate index reclaims ~200 MB; switching 36-char UUID primary keys to unsigned AUTO_INCREMENT shrinks two tables by ~50% and drops idx_frac 1.12→0.38. Includes concrete queries against information_schema to list largest tables, shows how to group by schema/table and sort by index fraction, and uses pt-duplicate-key-checker, Percona index_statistics and performance_schema to find unused indexes.

AI-written summary · about

  1. 0:00Intro
  2. 2:35Introduction - Sample Schema
  3. 2:55Key Considerations
  4. 5:53Data Types - Extra Considerations
  5. 8:13Indexing - High Level
  6. 11:09Indexing - Extra Considerations
  7. 14:31Profiling your Schema
  8. 16:18Finding Largest Schema
  9. 17:16Find Largest Tables in Schema
  10. 17:54Breaking it down...
  11. 20:05Finding duplicate keys...
  12. 21:12Finding Unused Indexes
  13. 22:32Combine with base index statistics...
  14. 23:41Drop duplicate keys
  15. 24:00Changing data types on event tables
  16. 25:42Schema breakdown - revisited...
  17. 26:13Common Issues
~/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.