~/talk

Storing strings in SQL Server and Azure SQL DB

Talkat SQLBits 2020 · 2020-09-29..10-04· [databases]
links:none on file
slides:none on file

Explains when to use UTF-8 versus UTF-16 in SQL Server and Azure SQL DB with concrete numbers and migration tactics: UTF-8 gives 50% storage savings for ASCII/Latin-heavy data and shows about 35% read/write I/O improvement in tests, while UTF-8 worsens performance ~25% for CJK data where UTF-16 is better; SQL 2019/Azure SQL add UTF-8 collations, conversion options are ALTER TABLE (blocking) or copy-and-replace (faster), and UTF-8 not supported with xml in-memory ltp or Always Encrypted enclaves.

AI-written summary · about

  1. 0:00Introduction
  2. 1:12Challenges
  3. 2:10Contoso
  4. 2:41New challenges
  5. 4:17Unicode
  6. 6:21Encoding
  7. 7:54Encoding in SQL
  8. 10:45Data types
  9. 12:09Storage differences
  10. 13:05Demo
  11. 13:22Operational considerations
  12. 15:25Other performance considerations
  13. 15:53Other considerations
  14. 17:16String literals
  15. 18:35Conversion Methods
  16. 19:10Alter Table
~/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.