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
-
Post removed?
No
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,790 311 123 +34%
Observability 3 1,376 249 90 +15%
Developer Experience 1 373 169 92 +54%
OpenTelemetry 1 310 47 20 -33%
Real-time 1 2,723 657 208 +15%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.