~/talk

Where Did I Leave My (Primary) Keys???

Talkat Silicon Valley Code Camp 2017 · 2017-10-07..10-08· [databases]
name:Ami Levin
links:none on file
slides:none on file

Builds two small SQL Server databases—one using surrogate integer IDs with a clustered identity, the other using natural keys—and runs benchmarks and execution plans. Inserts run about 40s vs 41s so insert cost is similar; singleton lookups are similar too, but range LIKE queries cause the ID design to scan while naturals get an index range seek. A grouped top-10 countries query eliminates multiple joins and becomes orders of magnitude faster; updates on natural keys trigger many cascaded writes. Code, scripts and materials are provided.

AI-written summary · about

  1. 0:00Introduction to key selection
  2. 3:09Types of database keys explained
  3. 7:01Surrogate vs natural keys debate
  4. 10:12Common claims about artificial keys
  5. 18:01Pros of natural keys
  6. 23:19Demo setup: artificial keys schema
  7. 25:31Demo setup: natural keys schema
  8. 27:59Query performance: singleton lookups
  9. 30:10Query performance: range scans
  10. 32:21Query performance: top countries report
  11. 34:50Query performance: joins reduction
  12. 37:47Update performance comparison
  13. 40:20Key selection guidelines
  14. 42:30Resources and closing
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.