---
title: "Inside the lamp: How GENIEE used ClickHouse to stabilize and optimize ad performance reporting"
description: "GENIEE replaced its Kafka-plus-Flink ad reporting pipeline with two ClickHouse clusters, one for log aggregation and one for reporting."
url: "https://swe.quest/articles/inside-the-lamp-how-geniee-used-clickhouse-to-stabilize-and-optimize-ad-c6ad13bb1e2cf117"
canonical: "https://clickhouse.com/blog/inside-the-lamp-how-geniee-used-clickhouse-to-stabilize-and-optimize-ad-performance-reporting"
source: "ClickHouse"
published: "2024-10-03"
difficulty: "medium"
kind: "Case study"
reading_minutes: 5
tags: ["analytics","stream-processing","ads","data-pipelines"]
---

# Inside the lamp: How GENIEE used ClickHouse to stabilize and optimize ad performance reporting

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2024-10-03, 5 min read, Case study. Original: [https://clickhouse.com/blog/inside-the-lamp-how-geniee-used-clickhouse-to-stabilize-and-optimize-ad-performance-reporting](https://clickhouse.com/blog/inside-the-lamp-how-geniee-used-clickhouse-to-stabilize-and-optimize-ad-performance-reporting)

## Summary

GENIEE replaced its Kafka-plus-Flink ad reporting pipeline with two ClickHouse clusters, one for log aggregation and one for reporting. The old setup suffered frequent Flink failures that forced manual recounts, and reports took 40+ minutes at peak. Logs now flow through the Kafka table engine into materialized views and SummingMergeTree tables for automatic pre-aggregation, with dictionaries handling advertiser metadata lookups. The team reports reports dropping from hours to minutes, fewer failures and fewer servers, and is next looking at projections, compression tuning and binary log formats instead of JSON.

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)
- [Stream processing](https://swe.quest/tags/stream-processing.md) (Data & databases)
- [Ads](https://swe.quest/tags/ads.md) (Domains)
- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)

## Prerequisites

- Kafka basics ([easy posts on Queues & messaging](https://swe.quest/tags/messaging.md?difficulty=easy))
- OLAP databases ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))

## Keywords

ClickHouse, Apache Kafka, Apache Flink, SummingMergeTree, Materialized views, BigQuery

## Related posts

- [How FabFunnel powers real-time marketing analytics with ClickHouse Cloud](https://swe.quest/articles/how-fabfunnel-powers-real-time-marketing-analytics-with-clickhouse-cloud-693f5ffb0f0b9887.md): ClickHouse · 2025-11-20 · Medium · 5 min read · Analytics & OLAP, Data pipelines, MySQL, Ads, Performance engineering
  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.
- [Data Hive: The story of beehiiv’s journey from Postgres to ClickHouse](https://swe.quest/articles/data-hive-the-story-of-beehiiv-s-journey-from-postgres-to-clickhouse-467867cb2bebb87b.md): ClickHouse · 2024-08-21 · Easy · 6 min read · Analytics & OLAP, Databases, PostgreSQL, Stream processing, Queues & messaging
  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.
- [Appcues delivers personalized customer engagement with ClickHouse Cloud](https://swe.quest/articles/appcues-delivers-personalized-customer-engagement-with-clickhouse-cloud-70117f941c9e140c.md): ClickHouse · 2026-06-18 · Medium · 8 min read · Analytics & OLAP, Databases, Performance engineering, Cost optimization
  Appcues moved its customer-facing product analytics and segmentation from Snowflake plus Airflow rollups to ClickHouse Cloud, covering 1.31 PB of data and over 1 billion user profiles.
- [“Just OLAP it”: How Ramp rebuilt its analytics platform on ClickHouse Cloud](https://swe.quest/articles/just-olap-it-how-ramp-rebuilt-its-analytics-platform-on-clickhouse-cloud-36298842faab88cc.md): ClickHouse · 2026-01-20 · Medium · 5 min read · Analytics & OLAP, Event-driven architecture, Data pipelines, PostgreSQL, Queues & messaging
  Ramp moved customer-facing spend analytics off its Postgres monolith after enterprise customers' reports on a single card-transactions table began taking 40+ seconds, and now serves them in milliseconds from ClickHouse Cloud.
- [“A generational leap”: How Trio unified payment analytics and cut storage by 88% with ClickHouse Cloud](https://swe.quest/articles/a-generational-leap-how-trio-unified-payment-analytics-and-cut-storage-by-88-b4c6dd92d9387fc0.md): ClickHouse · 2026-04-17 · Medium · 7 min read · Analytics & OLAP, Payments & fintech, Stream processing, Data pipelines
  Trio, a Brazilian payments fintech processing 243M+ payments in H1 2025 and over 1B events a day, consolidated legacy and active systems into ClickHouse Cloud as a single analytical source of truth for reconciliation, compliance and dashboards.

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)
