~/talk

Let me show you why data types still matter

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

Shows concrete failures and fixes: float loses precision so casting and ceiling produced wrong truth values and ruined a cursor-to-set refactor; use float only for imprecise measurements not counts or money. Demonstrates concatenation and type precedence where mixing varchar and nvarchar silently truncates strings so nvarchar halves capacity unless both sides use MAX. Fixing datetime2 precision enables partition elimination and cuts an ETL from 12 hours to under 2. Also cites memory grant bloat (queries asking ~80 GB) and costly implicit conversions causing index scans.

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.