~/talk

Lessons learned from refactoring multi terabyte databases for the last 10 years

Talkat SQLBits 2023 · 2023-03-14..03-18· [databases]
links:none on file
slides:none on file

Ten concrete refactoring tactics for multi‑TB databases: use SQL Server in Docker for repeatable dev/test, keep schema changes tiny and fast, put external interfaces under tests, and deploy with ordered versioned scripts. Real numbers: a 3 TB system regained terabytes of free space and cut memory pressure by moving hot columns (10% columns → ~11% more cache, 35% → ~50% cache). Practical moves include partitioned tables and partition views, parallel runs (dual writes, replay events), page‑log deletes, and removing unused indexes/tables — these approaches worked in production.

AI-written summary · about

  1. 0:00Intro
  2. 2:26Development Tools
  3. 3:39SQL Server Features Which Helps Refactoring
  4. 6:07User Access Documentation
  5. 6:57Document Interfaces Through Tests
  6. 8:51Step-By-Step Examples
  7. 11:37Deploy Scripts Versioning
  8. 12:41Benefits of Deploy Scripts
  9. 14:08Sandboxes
  10. 17:09An Event Log Before Database
  11. 23:23Internal Fragmentation
  12. 27:44Data Migration/Synchronization Techniques
  13. 33:21Parallel Run
  14. 36:13External API Pros
  15. 39:30Constraints
  16. 40:32Split Database First
  17. 40:46Split Code First
  18. 47:04Replace One-To-Many With Associative Table
  19. 48:59Data Exchange
~/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.