Optimizing Aggregate Functions in ClickHouse
summary
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
chapters (16)
- 0:00Introduction
- 1:04Talk goal and ClickHouse
- 3:54Aggregate function speed
- 6:48Optimizing number sums
- 10:26Ideal sum code
- 12:11Compilers and performance
- 16:32Vectorization limits
- 19:50Precision issues
- 23:06ClickHouse sum optimization
- 25:13DPMS Y comparison
- 26:38Average calculation algorithm
- 30:11Non-trivial code optimizations
- 33:21Approach experiments
- 36:39Test results and performance
- 38:57Conclusions
- 40:47Q&A
related talks
53mClickHouse capabilities for advanced developers
42mOptimizing ClickHouse query performance
57mQuery Performance Analysis in ClickHouse
42mTips & Tricks to Keep Your Queries under 100ms with ClickHouse®
42mBuilding an Analytic Extension to MySQL with ClickHouse® and Open Source
59mEffective Use of ClickHouse
49mSolving real business cases with ClickHouse
51mWhat You Need to Know About ClickHouse Architecture
