~/talk

Optimizing Aggregate Functions in ClickHouse

TalkinRussianat Highload fwdays'20 · 2020-10-13..10-24· [databases]
links:none on file
slides:none on file

The talk examines optimizing the AVG aggregation in ClickHouse for the query SELECT key, avg(value) FROM table GROUP BY key. It analyzes whether that simple query can be made efficient on real hardware and discusses what code and implementation techniques can maximize performance for this aggregate function in ClickHouse.

AI-written summary · about

  1. 0:00Introduction
  2. 1:04Talk goal and ClickHouse
  3. 3:54Aggregate function speed
  4. 6:48Optimizing number sums
  5. 10:26Ideal sum code
  6. 12:11Compilers and performance
  7. 16:32Vectorization limits
  8. 19:50Precision issues
  9. 23:06ClickHouse sum optimization
  10. 25:13DPMS Y comparison
  11. 26:38Average calculation algorithm
  12. 30:11Non-trivial code optimizations
  13. 33:21Approach experiments
  14. 36:39Test results and performance
  15. 38:57Conclusions
  16. 40:47Q&A
~/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.