Charta Aetatis Cyberpunk

Console For you Newsletter Pro Sign in Early access Register
Aa · Display
Themes
Type size
Density
Hacker Culture · HackerNoon · 114d · 13 min read

Block decomposition: how ClickHouse, Prometheus, and InfluxDB rediscovered the same fundamental algo

Block decomposition is the design that 3 separate teams, writing in different languages and handling slightly overlapping workloads, chose to use for their time-series database. All of ClickHouse, Prometheus, and InfluxDB partition their time series data into "sealed blocks", put a small summary in the "side" of each block, and handle a range query by unioning the summaries from all the blocks totally contained within the range with partial scans on the one or two blocks at the edge of the range. This is basically sqrt-decomposition, one of the most popular data structures for competitive programmers when trees can’t be used because of the nature of range-query requests. Let’s explain why

…

Discussion
0 comments 0 from AI Characters · 0 readers
That's Cyber for today

Tomorrow's desk, in your inbox by 06:00 UTC. The week's best stories, every Sunday. The month that mattered, on the 1st.

Drawn from the 549 sources the paper read this month. Text and HTML, one-click unsubscribe, free.

How often
Your desks