Home / Companies / Highlight.io / Blog / Post Details
Content Deep Dive

Using Materialized Views in ClickHouse (vs. Postgres)

Blog post from Highlight.io

Post Details
Company
Date Published
Author
Vadim Korolik
Word Count
1,495
Company Posts That Month
4
Language
-
Hacker News Points
-
Summary

Highlight.io, an open-source observability solution, adopted ClickHouse to manage and query large volumes of observability data, particularly for complex analytical tasks. ClickHouse, an OLAP database, is more suited for aggregate data analysis compared to PostgreSQL, which excels in OLTP tasks and single-record lookups. Materialized Views (MVs) in both databases help optimize query performance by storing transformed data. Highlight.io uses MVs in ClickHouse to efficiently handle various query patterns, such as aggregating traces and optimizing row lookups by different attributes, which is crucial for their tracing product's functionality. An example involves creating MVs to differentiate numeric and non-numeric trace attributes for quick searches, as well as optimizing trace searches by TraceId to support their UI needs, despite the additional resource consumption involved in maintaining these views.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
LLM 4 2,593 281 107 +38%
Observability 3 1,257 229 79 +14%
Developer Experience 1 355 157 84 +61%
OpenTelemetry 1 294 39 17 -29%
Real-time 1 2,578 595 180 +16%