~/talk

What the heck is a checkpoint, and why should I care?

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

Explains what a checkpoint actually does: it flushes transaction log records to disk, writes dirty pages back, updates the database boot page with a checkpoint LSN, and bounds crash-recovery work. Covers write-ahead logging, the roles of lazy/eager writers, and how recovery model/log backups affect VLF reuse. Demos show using 3504 trace flag and SQL Query Stress to correlate checkpoints with IO spikes, and changing indirect checkpoint target time (default 60s, more frequent smaller writes or less frequent larger spikes).

AI-written summary · about

  1. 0:00Start
  2. 12:57Write Ahead
  3. 36:53Automatic "Recovery Interval" default zero • What does this value mean? How reliable is this setting? • When do you change default? Changing to over 60 min require "OVERRIDE"
  4. 38:26Manual Transact-SQL CHECKPOINT 'checkpoint_duration' seconds to complete • Not guaranteed • Advanced option When do you use a Manual Checkpoint? When do you use 'checkpoint duration'?
  5. 42:21Checkpoint tempdb
~/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.