~/talk

Maximizing Database Performance With Isolation Levels

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

Walks through concrete tests on SQL Server and Azure SQL Database using a 41,437-row US ZIP table, extended events, sys.dm_tran_locks and ALTER DATABASE toggles. Demonstrates read uncommitted (WITH NOLOCK) returning transient “Bob” names and a 1,000-run test that yields the correct count only 60 times, with 371 undercounts and 569 overcounts. Shows READ_COMMITTED_SNAPSHOT giving 100% stable statement results via the tempdb version store, serializable taking nine key‑range locks for eight rows, and snapshot producing an update conflict (error 3960) on concurrent writes.

AI-written summary · about

  1. 0:00Introduction to concurrency
  2. 1:21Concurrency conflicts
  3. 3:56Locking and deadlock
  4. 7:05Pessimistic vs optimistic
  5. 8:04SQL Server isolation levels
  6. 13:54Read uncommitted isolation
  7. 19:34Read committed isolation
  8. 26:58Repeatable read isolation
  9. 29:23Serializable isolation
  10. 31:54Optimistic concurrency
  11. 34:21Read committed snapshot
  12. 37:29Snapshot isolation
  13. 44:38Cloud considerations and Q&A
~/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.