~/talk

Dealing with Very Large Tables in SQL Server

Talkat SQLBits 2019 · 2019-02-27..03-02· [databases]
links:none on file
slides:none on file

Very large tables (10M–20B rows, multi‑TB) turn small mistakes into huge costs: an unindexed 20B‑row, 4.6TB table returns 3 rows with a 28‑minute, 72M logical‑read scan; functions, arithmetic on predicates, and implicit type conversions cause index scans; rebuilding indexes blindly and running default stats on huge tables wastes time. Use persist_sample_percent with a higher sample (≥1–5%, 5% for multi‑TB), mark stats NORECOMPUTE, enable AUTO_UPDATE_STATISTICS_ASYNC, precreate stats before rollout, and prefer filtered stats or manual updates instead of default sampling.

AI-written summary · about

  1. 0:00Large tables in SQL Server
  2. 1:09Defining very large tables
  3. 3:57Challenges with large tables
  4. 7:28Missing indexes cost
  5. 9:57Query writing impact
  6. 14:10Cardinality estimation issues
  7. 24:33Fixing cardinality issues
  8. 28:44Auto update stats async
  9. 35:38Auto create stats risks
  10. 39:13Querying log tables
  11. 42:31Ascending key problem
  12. 46:18Identity column changes
  13. 50:33Q&A
~/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.