~/talk

Cookbook for Creating INDEXes -- All about Indexing

links:none on file
slides:none on file

Step-by-step recipe for building useful indexes: pick all columns that are column=constant first, then allow one range column (equal then range is optimal), then append GROUP BY columns and finally ORDER BY/ LIMIT only if earlier steps are satisfied; InnoDB uses a clustered primary key so prefer a compact PK (natural key or small INT auto_increment), avoid functions/leading-wildcard LIKE, low-cardinality flags, ORs and IN-subqueries (use joins or EXISTS), index-merge is slower than a composite index, and the optimizer often skips a secondary index once selectivity exceeds roughly 20% of rows.

AI-written summary · about

  1. 0:00Intro
  2. 0:16Definitions
  3. 13:59Algorithm
  4. 21:52Negatives
  5. 28:43File Sort
  6. 31:51Primary Keys
  7. 47:13Questions
  8. 48:09Grouping
  9. 48:51Group Buy
  10. 49:40Unique Key
  11. 50:21Index Merge
  12. 51:49Composite Index
  13. 52:08Table Reality
  14. 53:13Use it
  15. 53:51Black magic
  16. 54:21Temporary tables
  17. 54:56Optimization
  18. 55:35Optimize Table
  19. 56:33Online Schema Change
~/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.