~/talk

Accelerating TopK Queries

Talkat Berlin Buzzwords 2024 · 2024-06-09..06-11· [databases]
links:none on file
slides:none on file

Snowflake adds runtime pruning for TopK SQL by taking the boundary from sort-with-limit during execution and comparing it to per-partition minmax + nulls metadata in the table scan to skip entire partitions before downloading them. It supports predicates but not Group By aggregations because aggregations are pipeline breakers and aggregated values lack metadata. Tests and customer reports show extreme wins, sometimes up to 500x faster, with early regressions fixed; the metadata already exists so no extra storage is required and the feature is enabled by default.

AI-written summary · about

  1. 0:00Introduction
  2. 0:41Snowflake architecture
  3. 2:38The pruning mechanism
  4. 4:56Top-K query optimization
  5. 8:47Refining dynamic pruning
  6. 11:40Constraints and limitations
  7. 14:03Performance results
  8. 16:24Q&A and conclusion
~/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.