---
title: "ClickHouse Powers Dassana’s Security Data Lake"
description: "Dassana built a security data lake on ClickHouse to normalize mutable security findings (alerts whose state changes) that append-only SIEMs handle poorly."
url: "https://swe.quest/articles/clickhouse-powers-dassana-s-security-data-lake-f08fe92e7f020fde"
canonical: "https://clickhouse.com/blog/clickhouse-powers-dassanas-security-data-lake"
source: "ClickHouse"
published: "2023-01-23"
difficulty: "medium"
kind: "Case study"
reading_minutes: 7
tags: ["analytics","threat-detection","databases","sql"]
---

# ClickHouse Powers Dassana’s Security Data Lake

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2023-01-23, 7 min read, Case study. Original: [https://clickhouse.com/blog/clickhouse-powers-dassanas-security-data-lake](https://clickhouse.com/blog/clickhouse-powers-dassanas-security-data-lake)

## Summary

Dassana built a security data lake on ClickHouse to normalize mutable security findings (alerts whose state changes) that append-only SIEMs handle poorly. After ReplacingMergeTree and AggregatingMergeTree with materialized views struggled at scale, they solved last-point queries with a ClickHouse dictionary that periodically refreshes (every 5 seconds) the max insert timestamp per cityHash64(tenant, record\_id), then filtering the main table via dictGet. The approach outperformed the Join engine and fit hundreds of millions of distinct assets in 32GB RAM, at the cost of a few seconds of staleness. Lessons include keeping test and production hardware at parity and avoiding experimental features such as projections in production.

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)
- [Threat detection](https://swe.quest/tags/threat-detection.md) (Security)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)
- [SQL](https://swe.quest/tags/sql.md) (Languages)

## Prerequisites

- SQL aggregation ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))
- ClickHouse MergeTree engines ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))

## Keywords

ClickHouse, ReplacingMergeTree, AggregatingMergeTree, ClickHouse dictionaries, Dassana, SIEM

## Related posts

- [Fast, Feature Rich and Mutable : ClickHouse Powers Darwinium's Security and Fraud Analytics Use Cases](https://swe.quest/articles/fast-feature-rich-and-mutable-clickhouse-powers-darwinium-s-security-and-fraud-ebcdc43d86516c3d.md): ClickHouse · 2022-07-27 · Easy · 11 min read · Analytics & OLAP, Threat detection, Databases
  Darwinium, a digital risk and fraud platform, chose ClickHouse to back interactive security and fraud analytics over large, wide, long-retention event data.
- [How Exabeam uses ClickHouse for scalable, searchable security analytics](https://swe.quest/articles/how-exabeam-uses-clickhouse-for-scalable-searchable-security-analytics-9b3f4c0a732d0875.md): ClickHouse · 2025-09-11 · Medium · 6 min read · Analytics & OLAP, Performance engineering, Threat detection, Data pipelines, Scaling
  Exabeam runs its security analytics platform on ClickHouse Cloud across 10 regions, ingesting up to 1.2M events/sec per region (80B+ daily, 3.5 PB raw compressed to 200 TiB), with compute-compute separation that isolates write, merge and read nodes.
- [DENIC Improves Query Times By 10x with ClickHouse](https://swe.quest/articles/denic-improves-query-times-by-10x-with-clickhouse-060ef54871f5e907.md): ClickHouse · 2022-05-10 · Medium · 9 min read · Analytics & OLAP, Query engines, SQL, Performance engineering, Databases
  DENIC, the .de registry, built its data science platform on ClickHouse after rejecting Hadoop and Spark as too costly to administer and cloud services for privacy reasons.
- [What is ClickHouse Security? A technical overview of the agentic SIEM built on ClickHouse](https://swe.quest/articles/what-is-clickhouse-security-a-technical-overview-of-the-agentic-siem-built-on-55739f83613afe9b.md): ClickHouse · 2026-11-24 · Medium · 16 min read · Threat detection, Analytics & OLAP, AI agents, Observability
  ClickHouse Security is an agentic SIEM, built from RunReveal technology and now in private preview, that stores security logs in a customer's ClickHouse Cloud service.
- [Why Flock Safety turned to ClickHouse for real-time vehicle traffic analytics](https://swe.quest/articles/why-flock-safety-turned-to-clickhouse-for-real-time-vehicle-traffic-analytics-f35b2dcb28006f8a.md): ClickHouse · 2025-04-29 · Medium · 5 min read · Analytics & OLAP, Data pipelines, Cloud platforms
  Flock Safety replaced a once-daily Redshift, DBT, Prefect and QuickSight SPICE pipeline with ClickHouse Cloud.

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)
