~/talk

SUPERCHARGING SQL QUERY PERFORMANCE: UNLEASH THE POWER WITHIN!

Talkat DataEngBytes Sydney 2023 · on Friday, 2023-08-25· [databases]
name:Lisa Li
links:none on file
slides:none on file

Merchant, MerchantProduct and AdvertiserProduct tables on SQL Server grow from ~2M to 24M rows and cause timeouts; adding a composite index (merchant_id, source_product_id) changes a query plan from an index scan reading 3,024 rows to an index seek returning 1 row. Using a temp table typed as varchar vs nvarchar forces a scan (reads jump from 4 to 24) because of type mismatch. Creating an index view for advertiser counts reduces work from scanning 3,024 rows to reading 12 indexed entries.

AI-written summary · about

  1. 0:00Introduction
  2. 2:34Optimize SQL query performance
  3. 6:33SQL query execution basics
  4. 11:36Query execution plans
  5. 14:30Optimization case studies
  6. 19:29Index views for aggregation
  7. 21:18Summary
~/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.