~/talk

Why is Batch Mode Fast?

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

Batch mode runs columnstore data in cache‑sized batches, using vector and new CPU instructions so analytics run far fewer cycles and fewer mispredicted branches. Measured example counting ~8 billion bits goes from 4.3s → 2.6s → 1.3s → 0.6s as algorithms move from bitloops to lookup to popcount to vector popcount on Sapphire Rapids. Work includes AVX‑512 & vpopcnt kernels, operator rewrites, and parallelization that scales to 72 cores, delivering 10–100× analytic speedups and top TPC‑H results for SQL Server 2022.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 1:04Evolution of SQL Server hardware
  3. 5:15Modern CPU complexity and performance
  4. 11:56Instructions per cycle and chip efficiency
  5. 15:11Bit counting algorithms and CPU instructions
  6. 20:06Branch prediction and CPU efficiency
  7. 24:40Summary of CPU optimization strategies
  8. 25:43Introduction to batch mode in SQL Server
  9. 30:53Row mode vs batch mode execution engines
  10. 35:24Batch size design and cache optimization
  11. 38:13Parallel query scaling in batch mode
  12. 41:27Measuring SQL Server performance with TPC benchmarks
  13. 45:17AVX instructions and vectorized processing
  14. 47:05Batch mode optimizations in SQL Server 2022
  15. 49:11Conclusion 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.