~/talk

Keeping historical data in tables forever – mission (im)possible!

Talkat SQLBits 2022 · 2022-03-08..03-12· [databases]
links:none on file
slides:none on file

Emergency-control-room data must stay in same tables forever, be editable historically, and remain fast; operational tables grow 1–20M rows/year and logging can exceed 50M/year. Tests use SQL Server partitioning (clustered index with incident_date as leading key), aligned and non‑aligned nonclustered indexes, filtered nonclustered columnstore, partition switching to archive tables, and Redgate data generation; testing loads 3–4M rows. Partitioning gives partition elimination only when queries filter by date; Entity Framework broad selects force scans; aligned vs non-aligned indexes trade selectivity and maintenance; partition switch forbids non-aligned indexes and FK constraints.

AI-written summary · about

  1. 0:00Start
  2. 2:04Data Management Strategy is needed
  3. 5:52Data usage and data volume
  4. 7:56Obvious solution - Let's Partition!
  5. 10:50Important rules for partitioning
  6. 40:21Operational Analytics Considerations Summary
  7. 42:23Partition Switch OUT
~/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.