Skip to content

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

ClickHouse 7 min read How-to mediumAdept

Zero-Copy Graph Analytics: Getting Started With LakeHouse Graph

PuppyGraph can sit on top of ClickHouse over JDBC as a stateless graph query layer, so Cypher and Gremlin traversals run directly against the same tables that serve SQL analytics, with no ETL into a separate graph database. A reference implementation covers two use cases: Customer 360 recommendations over 35.4M records and fraud ring detection over 1.29M records seeded with five fraud patterns, including shared-device account takeover. Across 97 queries (42 SQL, 55 Cypher), median latency was 28ms and P95 was 148ms. That is higher than native graph storage but fast enough for interactive use, and it removes duplicate storage and sync lag.

Assumes: SQL joins and CTEsgraph data model basicsCypher query language

Related posts

  • How Fountain rebuilt its data plane on ClickHouse Cloud to power Cue, the Frontline Superintelligence

    ClickHouse mediumAdept

    Fountain replaced a multi-vendor batch pipeline (third-party replication to S3/Iceberg, then BigQuery) with ClickPipes CDC streaming Postgres and MongoDB directly into ClickHouse Cloud, cutting analytics freshness from three hours to under two minutes, with most queries sub-second, at about 66% lower cost. MongoDB documents land in ClickHouse's native JSON type, which enables schema-on-read dot-notation access, and over 2,000 incremental materialized views built with dbt replace any orchestrator. Moving a lagInFrame plus ASOF JOIN window computation into insert-time materialized views cut per-query memory by 80% on an 838M-row table, and 60-98% across other query shapes. Tenant isolation for the Cue LLM agent is enforced through empty service users, versioned RBAC roles, session variables set by the MCP backend, and row policies, so the design fails closed and resists prompt injection.

  • Harnessing the Power of Materialized Views and ClickHouse for High-Performance Analytics at Inigo

    ClickHouse mediumAdept

    Inigo stores analytics on billions of GraphQL API requests in ClickHouse after rejecting Snowflake as too slow and costly for customer-facing data and lacking a local emulator, and PostgreSQL because its indexes and costs blew up past roughly 100K–1M rows. Raw tables keyed on observed_at feed AggregatingMergeTree materialized views bucketed at 1-minute, 6-minute, 40-minute and 3-hour intervals, so most queries scan thousands of aggregated rows instead of millions of raw ones. Counts are stored as a calls column and read back with sum(calls), percentiles use quantilesState in the view and quantileMerge at query time, and high-cardinality fields like trace_id stay in raw tables only. The result is month-long retention in views versus a week of raw data, lower database load, and fast local integration tests, at the cost of setup complexity and no transactions.

  • Fast, Feature Rich and Mutable : ClickHouse Powers Darwinium's Security and Fraud Analytics Use Cases

    ClickHouse easyNovice

    Darwinium, a digital risk and fraud platform, chose ClickHouse to back interactive security and fraud analytics over large, wide, long-retention event data. Its reasons were simpler ingestion than immutable HDFS-style pipelines, AggregatingMergeTree tables that maintain rollups without a separate pipeline, and a single server absorbing thousands of writes per second on ~3k-column rows at under 5% CPU. Map, Array and JSON types absorb fast-changing model signals without schema churn, and tiered SSD-to-S3 retention, sharding and replication handle cost and availability. Group-by queries on a 40M-row, ~3k-column table under varying analyst concurrency are charted as evidence of sub-second interactive performance.

  • Appcues delivers personalized customer engagement with ClickHouse Cloud

    ClickHouse mediumAdept

    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. Events flow through Kafka into a deduplicating consumer. Materialized views replaced the Airflow pre-aggregation jobs, and SharedReplacingMergeTree with argMax instead of FINAL resolves the latest profile state. Lightweight deletes in ClickHouse 25.6 cleared a GDPR deletion backlog. P95 query latency fell from 20+ seconds to under 2, ingestion-to-query latency dropped from 10+ minutes to about 5 seconds, and analytics spend fell 23%.

  • 100x Faster: GraphQL Hive migration from Elasticsearch to ClickHouse

    ClickHouse easyNovice

    GraphQL Hive replaced Elasticsearch with ClickHouse for storing per-request GraphQL monitoring data (consumer, requested fields, latency, request body) after query latency degraded with data growth and one large tenant slowed queries for smaller ones. On a 20M-row benchmark where one user owned half the rows, percentile queries took ~10s on Elasticsearch, ~5s on InfluxDB (which struggled with high cardinality), ~3s on TimescaleDB and ~100ms on ClickHouse. Druid was skipped as too complex. Because data had a 30-day TTL, the team dual-wrote to both stores for a month and then switched reads with zero downtime, reporting a 100x average improvement and growth from millions to billions of rows per month. They are now moving to ClickHouse Cloud for sharding and replication.

The quest for software engineering knowledge.

Look:
Layout: