Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

ClickHouse 8 min read Case study easyNovice

How Critical Manufacturing uses ClickHouse to bring real-time intelligence to the factory floor

Critical Manufacturing, a maker of Manufacturing Execution System (MES) software, replaced its SQL Server analytics stack with ClickHouse after historical queries stretched to hours and index and partition tuning became a burden. Kafka ingestion through materialized views into MergeTree tables now serves sub-second dashboards over billions of shop-floor events. ClickHouse has since expanded to equipment telemetry, OpenTelemetry-based observability and RAG embeddings. Key techniques were ELT instead of ETL so transformations can be fixed at query time, ReplacingMergeTree with careful ordering keys to handle late or duplicate events, JSON denormalization to avoid many-way joins, and TTL-based data lifecycle management. Replicated table engines and sharding are planned next.

Related posts

  • Data Hive: The story of beehiiv’s journey from Postgres to ClickHouse

    ClickHouse easyNovice

    beehiiv replaced its Postgres-and-Ruby-queue analytics system, which struggled with billions of email events and had multi-hour reporting delays, with a Kafka-fed ClickHouse Cloud pipeline. The design leans on ReplacingMergeTree for idempotent ingestion and event replay, dictionaries to enrich inserts without joins, ephemeral columns for intermediate calculations, materialized views as pre-aggregated shadow tables with alternate sort keys, and window functions for analytics. After six months the system held over 33 billion raw events in 1.5 TiB compressed (13 TiB uncompressed), with 22 ms median and 85 ms average query times. Creators now see send performance within seconds instead of hours.

  • How FabFunnel powers real-time marketing analytics with ClickHouse Cloud

    ClickHouse mediumAdept

    FabFunnel moved its marketing analytics off a normalized MySQL reporting stack, where month-long queries took 11 seconds and year-long reports crashed browsers due to client-side merges, to ClickHouse Cloud. Spend and revenue data now stream through Confluent Kafka via ClickPipes into ReplacingMergeTree tables, which replace the old delete-and-reinsert refresh cycle. Refreshable materialized views pre-aggregate into a single reporting table, and a buffer table handles real-time click data. Queries now return in under a second, and the system handled 19.2M queries reading 11.67 trillion rows in one month.

  • 98% faster queries, 50% lower cloud costs: Verihubs’ journey from Postgres to ClickHouse

    ClickHouse mediumAdept

    Verihubs replaced a Postgres warehouse fed by daily Airflow batch pulls with a ClickHouse-based real-time OLAP stack. Kafka Connect and Debezium CDC stream data into MergeTree tables for append-only logs and ReplacingMergeTree tables for updatable rows. Materialized views and projections build daily and monthly rollups for reconciliation and invoicing, and Dagster handles complex detection jobs. Queries dropped from 20-30 minutes to 2-3 seconds, and cloud costs fell up to 50%. Lessons include designing ordering keys up front, choosing MergeTree engines carefully, expecting asynchronous mutations, and planning backfills because materialized views don't backfill automatically.

  • How LINE MANGA used ClickHouse to enable real-time analysis without moving a single row

    ClickHouse easyNovice

    LINE MANGA uses ClickHouse as a federated query layer over its horizontally and vertically sharded MySQL fleet, querying data in place rather than ingesting it. Virtual tables built with the MySQL Table and Database Engines push filter conditions down to each MySQL shard and aggregate the results in ClickHouse. That lets engineers join product metadata with user purchases across servers and total platform-wide sales in a single SQL query, with no ETL lag and no copying of sensitive or audit-restricted data. Engineers test queries locally with clickhouse-local, Docker Compose and IntelliJ, while production queries go through an audit-compliant gateway. MySQL remains the system of record.

  • How Chartmetric uses ClickHouse to turn artist data into music intelligence

    ClickHouse mediumAdept

    Chartmetric moved its heaviest time-series and relational workloads off Postgres RDS and Snowflake. It started on self-hosted ClickHouse on EC2, then switched to ClickHouse Cloud once operating the cluster past 8 TB on EBS became painful. Time-series queries that used to time out now finish in about six seconds, RDS storage dropped by 10 TB, and a two-billion-row artist-playlist table went from over five minutes to about two seconds per query. That table handles deletes through Snowflake-generated deletion markers, a row_active flag and VersionedCollapsingMergeTree instead of FINAL. Lessons learned: do joins upstream to avoid out-of-memory errors, and use multiple projections to serve different access patterns, keeping in mind that projections don't support deletes.

The quest for software engineering knowledge.

Look:
Layout: