~/talk

Let me show you why data types still matter

Talkat SQLBits 2022 · 2022-03-08..03-12· [databases]
links:none on file
slides:none on file

Demonstrates concrete failures from mismatched types: float rounding causes comparisons to evaluate false even though SSMS prints 0.3, and NVARCHAR uses two bytes per character so concatenation with VARCHAR can silently truncate strings. Shows a real rescue: changing column types shrinks a table from terabytes to megabytes (from ~2.2 TB to ~200 MB while row count falls massively), fixes partition elimination by matching datetime precisions and cuts an ETL from 12 hours to under 2, and exposes costly implicit conversions and huge memory grant requests (tens of GB).

AI-written summary · about

  1. 0:00Introduction
  2. 1:52Float data type surprises
  3. 4:45Dangers of float for precision
  4. 5:07String concatenation issues
  5. 7:39Unicode vs non-Unicode strings
  6. 8:24Choosing string column types
  7. 10:13Data types and performance
  8. 12:00Memory grants and data types
  9. 12:20Partition elimination precision
  10. 15:34Implicit conversion costs
  11. 18:00Questions 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.