~/talk

My application is fully concurrent and async. What about the database?

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

A .NET console demo opens concurrent connections and shows SQL Server and Azure SQL taking page and key locks, lock escalation at ~5,000 locks, and queries becoming suspended when the app slows; JDBC implicit transactions also hold work open. Azure SQL defaults to read committed snapshot (versioning) while SQL Server historically uses locking; enabling snapshot avoids blocking. Recommended fixes: push logic into stored procedures or use EF Core batching, use memory optimized tables for lock-free MVCC, or apply targeted lock hints.

AI-written summary · about

  1. 0:00Introduction to async databases
  2. 1:23Demo of async connections
  3. 3:51Understanding locks in databases
  4. 7:48Transactions and ACID properties
  5. 12:01Explicit vs implicit transactions
  6. 17:18Isolation levels explained
  7. 22:18Locking behavior in queries
  8. 28:45Page-level locking mechanics
  9. 31:11Read committed isolation level
  10. 33:22Repeatable read isolation level
  11. 36:36Short transactions for concurrency
  12. 38:45Versioning vs locking
  13. 42:00Demo of transaction isolation
  14. 45:14Read committed snapshot isolation
  15. 48:04In-memory tables for concurrency
  16. 49:07Batching data for performance
  17. 51:17Q&A and closing remarks
~/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.