~/talk

Voila, Indexes! A Look at Some Simple Preventative Magick

Talkat RailsConf 2015 · 2015-04-21..04-23· [databases, ruby-on-rails]
slides:none on file

A concrete claim: shipping tables without indexes causes full table scans that explode as data grows — the example generates one scroll per minute reaching 700 scrolls by sunset and thousands in days — and the remedy is to add targeted indexes (foreign keys, multi-column for sorted queries) at creation time. Tooling shown: Rails migrations, MySQL EXPLAIN to see plans (look for the dreaded ALL), and measurements prove selective indexing cuts work and latency dramatically.

AI-written summary · about

  1. 0:00Basil and Fabian intro
  2. 3:47Library without indexes
  3. 7:58Indexing everything leads to disaster
  4. 12:34Why indexes hurt performance
  5. 14:57Foreign keys as index start
  6. 17:26Multi-column indexes uses
  7. 20:37When multi-column indexes help
  8. 23:03Sort columns indexing
  9. 24:26EXPLAIN index usage
  10. 29:23Optimizing with EXPLAIN
  11. 31:31Database index best practices
~/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.