~/talk

Maximizing Database Performance With Isolation Levels

Talkat SQLBits 2024 · 2024-03-19..03-23· [databases, distributed-systems]
links:none on file
slides:none on file

Shows isolation levels on SQL Server and Azure SQL DB using a 41,437-row ZIP code demo, Extended Events and dbcc user options to prove behavior. WITH (NOLOCK) (read uncommitted) returns volatile, impossible states; default read committed produces correct counts only 60/1000 times in a moving-row test (371 undercounts, 569 overcounts). Enabling read committed snapshot via ALTER DATABASE fixes that test to 100% by using the tempdb version store. Serializable uses key-range locks; 3960 update conflict appears under snapshot on concurrent updates.

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.