~/talk

Hear me out - Don't go offline because of your index deployment strategy

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

A production table goes slow and CPU spikes after a deployment that drops an index then recreates it offline; the mistake is non-atomic drop/create and table locks. Fixes demonstrated: create the new index side-by-side or use DROP_EXISTING=ON to do a single safe swap, enable ONLINE=ON to avoid long table locks, and use RESUMABLE=ON plus MAX_DURATION and MAXDOP to pause/resume long builds and allow log truncation; compression reduced page count ~50% in the example and cut I/O.

AI-written summary · about

  1. 0:00Index deployment risks
  2. 1:24Index deployment disaster case
  3. 2:51Original deployment script flaws
  4. 3:35Deployment options
  5. 5:01DROP EXISTING method
  6. 7:13Data compression benefits
  7. 9:23ONLINE deployment trade-offs
  8. 11:13MAXDOP setting
  9. 11:53RESUMABLE index creation
  10. 14:27MAXDURATION with resumable
  11. 15:09LOW_PRIORITY option
  12. 16:37Correcting deployment approach
  13. 17:41Recommended strategy
  14. 18:01Database config for indexes
  15. 19:05Recovery benefits
~/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.