10x speed, 10x savings: Constant Contact’s journey from Pinot to ClickHouse
Constant Contact replaced Apache Pinot with ClickHouse for real-time marketing analytics after Pinot's upsert handling without compaction grew to ~180 GB of daily segments, forced memory increases, and made restores take weeks. Historical data was bulk-loaded in three hours via Athena CTAS to S3 and the s3 table function, ReplacingMergeTree replaced Pinot upserts, and a single ClickHouse node delivered sub-second queries that took Pinot four servers and three brokers up to 6-7 seconds. Data compacted from 180 GB to 35 GB and infrastructure cost fell roughly 10x. The speedup is attributed to pread over mmap, LSM-style merges, C++ memory footprint, and fewer components, with lessons on schema types, primary key choice, and tested backups.
Related posts
- How Real Estate Analytics made its data pipeline 50x faster with ClickHouse
ClickHouse easyNovice
Real Estate Analytics replaced a MongoDB-based architecture with ClickHouse to serve user-selectable slicing across 200+ columns on 3-20 million row tables. In MongoDB each added index increased refresh time by about 10%, and full refreshes took 25-30 minutes. In ClickHouse the same refreshes finish in under 30 seconds (50x), and aggregation queries run about 10x faster. The team also replaced a Kafka-plus-containerized-consumer ingestion path with S3-to-ClickHouse loading, using globs, reading zip files without extracting them, the S3 table function and in-database JSON and regex parsing. Remaining gaps include no support for pre-1900 dates, weak WKT spatial support and, at the time, no auto-increment IDs.
- Ongage's Strategic Shift to ClickHouse for Real-time Email Marketing
ClickHouse easyNovice
Ongage, an email and SMS marketing automation company processing about half a billion messages a day, moved its campaign analytics and automation reporting from a large AWS RDS MySQL cluster (alongside MongoDB and Redshift) to ClickHouse Cloud. The pipeline loads raw events from S3 with the s3Cluster function and copies around eight MySQL tables in via the MySQL table engine, swapping them in with EXCHANGE. A materialized view enriches inserted events with joins and writes them to a SummingMergeTree table that serves queries. Reports that took two to three hours on MySQL now return almost instantly. ClickHouse was chosen over SingleStore on storage cost (SingleStore was 6x more expensive) and materialized view support, and the managed cloud offering won on operational burden and support.
- Vantage's Journey from Redshift and Postgres to ClickHouse
ClickHouse easyNovice
Vantage, a cloud cost platform handling billions of billing records, outgrew Postgres when constant deletes and reinserts kept vacuum running and pushed indexes out of memory. Redshift, tried next with Postgres as a cache, struggled with updates, needed data inserted in sort order, required expensive vacuum sort jobs, and forced billions of rows to be copied daily between the two systems. A 60-day migration to ClickHouse Cloud replaced the delete-and-reinsert pattern with ReplacingMergeTree and an incrementing import-version column, letting background merges handle updates. The result was double the resources at roughly Redshift's price, with query performance comparable to well-indexed pre-aggregated Postgres tables.
- Why ClickHouse Cloud wins at real-time analytics
ClickHouse mediumAdept
In the CostBench streaming benchmark (113.2 billion stock quotes ingested at about 1M rows/s while queries ran), ClickHouse Cloud scored 412× to 1,996× better end-to-end performance per dollar than Snowflake, Databricks, BigQuery and Redshift Serverless. Its lead comes from sorting data and computing incremental materialized-view pre-aggregations in memory at insert time, so summaries never lag behind raw data. Background part merges then keep combining the mergeable aggregation states. Ingestion and merging are parallelized across nodes, cores and SIMD lanes, and a 4-core ingest service prepared all the data for $28.69 with 14.4× compression, while the other systems needed separate asynchronous refresh stages that lagged and cost $79–$696.
- Better Analytics at Scale with Trackingplan and ClickHouse
ClickHouse mediumAdept
Trackingplan, which tests web, mobile and backend analytics by sampling events sent to tools like Google Analytics and Segment, moved from DynamoDB with PySpark-precomputed statistics to ClickHouse Cloud so it could answer unforeseen ad hoc queries on raw data. After evaluating Snowflake, BigQuery, Redshift and Athena, the team found ClickHouse 20x faster than Athena and cheaper than the pay-per-scan options for a continuous query workload. Materialized views, backfilled via INSERT INTO SELECT, precompute the common dashboard statistics. Customer-ID ordering keys handle multi-tenancy and ad hoc queries across about 30 billion rows growing 400% per year, and Map/Array types hold dynamic properties.