Home / Companies / PostHog / Blog / Post Details
Content Deep Dive

How we turned ClickHouse into our event mansion

Blog post from PostHog

Post Details
Company
Date Published
Author
James Greenhill
Word Count
1,354
Company Posts That Month
7
Language
-
Hacker News Points
-
Post removed?
No
Summary

PostHog's transition from Postgres to ClickHouse, shared at the OSA Con 2021, highlights their journey in seeking a scalable, real-time database solution to accommodate their growing user base and data demands. Initially developed on Postgres for its relational data handling and ease of deployment via Heroku, PostHog faced performance declines as user adoption soared. This led them to explore a range of OLAP solutions, ultimately selecting ClickHouse for its speed, simplicity, and SQL-like interface. Despite challenges such as handling mutations and index complexities, the migration significantly improved real-time data processing and future-proofing capabilities, allowing PostHog to maintain swift performance and expand features seamlessly. The process involved parallel deployment with feature flags to manage the transition smoothly. Looking ahead, PostHog plans to deepen its integration with ClickHouse by exploring function-building at the source and experimenting with new engines to enhance data quality and operational efficiency further.

Trends Found in this Post

No tracked trend matches for this post yet.

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.