~/talk

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

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

Explains exactly what a checkpoint writes and why: it flushes dirty pages to disk, records a begin/end checkpoint LSN in the boot page, and relies on write ahead logging so committed transactions survive crashes while uncommitted ones get undone. Shows that checkpoints do not evict pages, how lazy and eager writers differ, and how recovery interval / indirect checkpoint change frequency and IO shape. Includes demos and uses traceflags (3502/3504) to show timing, page counts and millisecond durations.

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.