~/talk

Sort vs Hash A Duality

Talkat PGConf Silicon Valley 2016 · 2016-11-14..11-16· [databases]
slides:none on file

Claim: OLTP gets single-digit‑ms performance on seven‑join queries by using nested loop + B‑tree index lookups that are effectively independent of dataset size. Implementations: Postgres 9.6/10 adds parallel/hash improvements and Robin Hood hashing; proposed parallel hash join. Behavior: hash join builds an in‑memory hash on the smaller side, then probes, and shows a stair‑step cost when memory is constrained; external sorts and SIMD‑friendly merge strategies degrade more smoothly and may regain advantage as memory bandwidth per core stalls.

AI-written summary · about

  1. 0:00Start
  2. 3:53Nested Loop Joints
  3. 6:16Example Using Sql
  4. 14:06Merge Joins
  5. 15:02Example of a Merge Join
  6. 22:31Hash Joins
  7. 27:15Memory Capacity
  8. 29:36Quicksort for External Support Operations
  9. 40:20Bandwidth Oblivious Sort
  10. 42:03Instruction Level Parallelism Simdi
  11. 44:17Sort Benchmark
~/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.