Skip to content- Sources: primary
- Summary: The video counts 17 million unique user IDs across 99 million rows with a single hash map, then with rows first scattered into 4,096 partitions by 12 hash bits and counted one partition at a time. Warm runtime dropped from 3.6 to 2.7 seconds. perf stat showed memory-bound stalls falling from about half of CPU capacity to 23%, retired work rising from 16% to 32%, and main memory fetches falling from 76 million to 26 million.
- Why it matters: For large group-by workloads, a radix partition pass can beat a single big hash table because cache misses, not instruction count, set the speed.