---
title: "ClickHouse Newsletter June 2022: Materialized, but still real-time"
description: "Point-in-time queries over incomplete time series can combine a materialized view of 15-minute argMax aggregates with raw data for the latest partial interval, unioned and re-aggregated."
url: "https://swe.quest/articles/clickhouse-newsletter-june-2022-materialized-but-still-real-time-9ad5be45d6c0df99"
canonical: "https://clickhouse.com/blog/clickhouse-newsletter-june-2022-materialized-but-still-real-time"
source: "ClickHouse"
published: "2022-06-09"
difficulty: "medium"
kind: "Article"
reading_minutes: 6
tags: ["analytics","sql","performance"]
---

# ClickHouse Newsletter June 2022: Materialized, but still real-time

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2022-06-09, 6 min read, Article. Original: [https://clickhouse.com/blog/clickhouse-newsletter-june-2022-materialized-but-still-real-time](https://clickhouse.com/blog/clickhouse-newsletter-june-2022-materialized-but-still-real-time)

## Summary

Point-in-time queries over incomplete time series can combine a materialized view of 15-minute argMax aggregates with raw data for the latest partial interval, unioned and re-aggregated. This keeps answers accurate to the requested timestamp while cutting query time by 98% on a 200M-row dataset, with full CREATE TABLE, materialized view and query SQL shown. The ClickHouse v22.5 release turns on memory overcommit by default, adds parallel hash joins (up to 80% faster large joins), GROUPING SETS and FIPS compliance via BoringSSL.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [SQL](https://swe.quest/tags/sql.md) (Languages)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)

## Prerequisites

- SQL aggregation ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))
- materialized views
- ClickHouse MergeTree tables ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))

## Keywords

ClickHouse, AggregatingMergeTree, argMax, materialized views, parallel hash join, GROUPING SETS, memory overcommit

## Related posts

- [Using Materialized Views in ClickHouse](https://swe.quest/articles/using-materialized-views-in-clickhouse-f547ca7b5675b5e9.md): ClickHouse · 2023-01-19 · Medium · 13 min read · Analytics & OLAP, SQL, Performance engineering, Data pipelines
  ClickHouse materialized views act as insert-time triggers that write the result of a SELECT into a target table, letting expensive aggregations be precomputed.
- [ClickHouse Release 23.12](https://swe.quest/articles/clickhouse-release-23-12-36e0c0d21cc33770.md): ClickHouse · 2024-01-11 · Medium · 16 min read · Analytics & OLAP, Query engines, SQL, Performance engineering
  ClickHouse 23.12 adds experimental Refreshable Materialized Views, which periodically re-run an arbitrary query and atomically replace the results in a target table.
- [Accelerating ClickHouse queries on JSON data for faster Bluesky insights](https://swe.quest/articles/accelerating-clickhouse-queries-on-json-data-for-faster-bluesky-insights-cce6ed7a467f6449.md): ClickHouse · 2025-03-19 · Medium · 29 min read · Analytics & OLAP, Performance engineering, SQL, Databases
  Incremental materialized views feeding AggregatingMergeTree tables cut ClickHouse dashboard queries over 4+ billion Bluesky JSON documents (1.6 TiB) from 44–56 seconds to 3–7 ms. Partial aggregation states are computed only for newly inserted rows and merged in the background, so the pre-aggregated tables stay tiny (e.g. 892 rows, 11 KiB) and constant-size regardless of source growth.
- [Building a product analytics solution with ClickHouse](https://swe.quest/articles/building-a-product-analytics-solution-with-clickhouse-786424348993d92f.md): ClickHouse · 2024-12-05 · Medium · 24 min read · Analytics & OLAP, SQL, Databases, Product engineering
  ClickHouse's in-house product analytics platform, Galaxy, stores over 20 billion events (14 TB, roughly 14x compression) in a single denormalized MergeTree table keyed on created\_at.
- [Harnessing the Power of Materialized Views and ClickHouse for High-Performance Analytics at Inigo](https://swe.quest/articles/harnessing-the-power-of-materialized-views-and-clickhouse-for-high-performance-ebcfa2d951da7c43.md): ClickHouse · 2023-06-23 · Medium · 8 min read · Analytics & OLAP, Databases, SQL, Performance engineering
  Inigo stores analytics on billions of GraphQL API requests in ClickHouse after rejecting Snowflake as too slow and costly for customer-facing data and lacking a local emulator, and PostgreSQL because its indexes and costs blew up past roughly 100K–1M rows.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
