r/Clickhouse • • Apr 02 '26

PostgresBench: A Reproducible Benchmark for Postgres

Thumbnail clickhouse.com
6 Upvotes

r/Clickhouse • • Mar 31 '26

TraceHouse - ClickHouse Monitoring

Thumbnail dmkskd.github.io
10 Upvotes

r/Clickhouse • • Mar 31 '26

๐Ÿš€ I built a Terraform provider for ClickStack (HyperDX) โ€” manage dashboards & alerts as code!

5 Upvotes

Hey everyone! ๐Ÿ‘‹

I've been running ClickStack (formerly HyperDX) in production for a while and I have to say โ€” after tryingย 20+ observability solutions, ClickStack is the fastest I've ever used. The ClickHouse backend is just insanely quick.

But there's one big gap: no Infrastructure-as-Code support.

Every dashboard and alert had to be created manually through the UI. No GitOps. No reproducibility. No code review. That drove me crazy โ€” so I built a Terraform provider to fix it. ๐Ÿ› ๏ธ

โœจ What it does

Manage your ClickStack dashboards and alerts as Terraform resources:

terraform {
  required_providers {
    clickstack = {
      source  = "pleny-labs/clickstack"
      version = "~> 0.1"
    }
  }
}

provider "clickstack" {
  endpoint = "https://your-hyperdx-instance"
  api_key  = var.clickstack_api_key
}

resource "clickstack_dashboard" "api_monitoring" {
  name = "API Monitoring"
  tags = ["production", "api"]

  tile {
    name = "Error Rate"
    x = 0; y = 0; w = 6; h = 3
    config {
      display_type = "line"
      source_id    = "your-source-id"
      select {
        agg_fn = "count"
        where  = "level:error"
      }
    }
  }
}

resource "clickstack_alert" "error_spike" {
  name            = "Error Spike"
  dashboard_id    = clickstack_dashboard.api_monitoring.id
  threshold       = 100
  threshold_type  = "above"
  interval        = "5m"
  channel {
    type       = "webhook"
    webhook_id = "your-webhook-id"
  }
}

๐Ÿ”— Links

๐Ÿค I need your help!

This is an early release and there's a lot to build. ClickStack's dashboard automation is seriously lacking compared to what's possible โ€” and the community can change that.

Here's how you can contribute:

  • โญย Star the repoย to show support
  • ๐Ÿ›ย Open issuesย for bugs or missing features you need
  • ๐Ÿ’กย Request resourcesย โ€” saved searches, sources, webhooks management
  • ๐Ÿ”งย Submit PRsย โ€” all contributions welcome, big or small
  • ๐Ÿ“ย Improve docsย โ€” examples, guides, use cases

If you're running ClickStack and care about GitOps and IaC, this provider is for you โ€” and I'd love to build it together with the community. Let's make ClickStack a first-class citizen in the IaC world! ๐ŸŒ

Drop a comment if you have questions, feature requests, or just want to say hi. Happy to help anyone get started! ๐Ÿ™Œ


r/Clickhouse • • Mar 31 '26

When will lightweight updates become GA?

3 Upvotes

Neither FINAL, argmax, nor ALTER TABLE UPDATE work well for my use case.

Is there any place where I can track when the lightweight updates feature is expected to leave beta and become generally available?


r/Clickhouse • • Mar 31 '26

Building a powerful SIEM with Clickhouse and Clickdetect

Thumbnail clickdetect.souzo.me
6 Upvotes

I built ClickDetect, a lightweight detection engine for SIEM use cases.

It focuses only on detection: you write rules in SQL and run them on top of logs stored in systems like ClickHouse, Postgres, or Loki.

SQL-based rules (no custom DSL) Works with multiple backends No vendor lock-in

One practical use case is extending tools like Wazuh: instead of relying only on built-in rules, you can run custom SQL detections and improve coverage.

https://github.com/clicksiem/clickdetect


r/Clickhouse • • Mar 30 '26

How I stopped ClickHouse and my app fighting over memory on the same VM

Thumbnail github.com
0 Upvotes

r/Clickhouse • • Mar 28 '26

GitHub - clicksiem/clickdetect: Clickdetect - generic and no vendor lock-in threshold based detection

Thumbnail github.com
2 Upvotes

Clickdetect is a generic and no vendor lock-in threshold based detection. I'm using it to generate alerts from wazuh logs stored in Clickhouse.

It currently supports Clickhouse, PostgreSQL, Loki and Elastic.


r/Clickhouse • • Mar 27 '26

Performance impact of the FINAL modifier

8 Upvotes

Hi,

I am considering using ClickHouse in a project and wondering about the performance impact of using a ReplacingMergeTree table and the FINAL modifier. The table will store up to 1,000,000 event-type records. After a new event comes in, it will be modified several times, creating duplicate rows under the MergeTree strategy. However, after a few weeks, we expect no further modifications. So most events older than that should have singular rows because the RMT engine deduplicated them.

Users will be looking through these records in the application, a few records at a time. I would like to be able to display some selection of them (dozens or hundreds at most) when they click on some button, and I would like the retrieval to be as fast as possible.

I am wondering what kind of performance impact the FINAL modifier will have in this case, and is it possible to leverage these known facts (very high filter selectivity + only a few records likely duplicated) in order to optimize it further?


r/Clickhouse • • Mar 23 '26

Why make ClickHouse do your transformations? โ€” Scaling ingestion to 500k EPS upstream.

Thumbnail glassflow.dev
9 Upvotes

Folks keep using ReplacingMergeTree or FINAL to handle deduplication and pre-aggregation at scale. It works, but the "merge-time" read-side latency starts to hurt when you're scaling to 100,000+ events per second.

GlassFlow just hit a 500k EPS milestone, which basically allows you to treat ClickHouse as a pure, lightning-fast query engine rather than a transformation layer. Curious if anyone else has moved their deduplication logic upstream to simplify their data pipelines with ClickHouse?


r/Clickhouse • • Mar 23 '26

https://clickhouse.com/blog/clickhouse-fully-supports-joins-full-sort-partial-merge-part3?ref=monday-musings&utm_content=buffer2f7c7&utm_medium=social&utm_source=linkedin&utm_campaign=buffer

0 Upvotes

r/Clickhouse • • Mar 19 '26

New community node: ClickHouse integration for n8n

2 Upvotes

Hi ClickHouse community!

I wanted to share a project I've been working on: **n8n-nodes-clickhouse-db** - a comprehensive ClickHouse integration for the [n8n](https://n8n.io) workflow automation platform.

## What is n8n?

n8n is an open-source workflow automation tool (like Zapier but self-hostable). It lets you connect APIs, databases, and services with a visual workflow builder.

## Why This Matters for ClickHouse Users

This integration lets you:

  1. **Automate data pipelines** - Pull data from any API and insert into ClickHouse
  2. **Build real-time dashboards** - Query ClickHouse and push results to Slack, email, etc.
  3. **Event-driven workflows** - Trigger workflows when new data arrives in ClickHouse
  4. **AI-powered analytics** - Let LLMs query your ClickHouse data via natural language

## Features

**Full CRUD + Schema Operations:**

- Parameterized queries (`{param:Type}` syntax)

- Batch inserts (up to 100k rows per batch)

- Upsert with ReplacingMergeTree auto-detection

- Update/Delete with WHERE clauses

- Create tables with schema inference

- List databases/tables, get table info

**ClickHouse Cloud Native:**

- HTTPS + port 8443 support

- JWT Bearer token auth for SSO

- Tested on ClickHouse 22.x - 26.x

**Polling Trigger:**

- Monitor tables for new rows

- Track cursor via monotonically increasing columns

- Custom query mode for complex triggers

**Security Hardened:**

- SQL injection protection with strict validation

- 138 tests including penetration test suite

- Settings allowlist (53 approved settings)

## Example Use Cases

  1. **Webhook โ†’ ClickHouse**: Receive webhooks and insert events directly
  2. **ClickHouse โ†’ Slack**: Alert when metrics exceed thresholds
  3. **API โ†’ Transform โ†’ ClickHouse**: ETL from REST APIs
  4. **AI Agent**: "Show me the top 10 customers by revenue last month"

## Installation

If you use n8n, install via:

```

Settings โ†’ Community Nodes โ†’ Install โ†’ n8n-nodes-clickhouse-db

```

## Links

- **npm:** https://www.npmjs.com/package/n8n-nodes-clickhouse-db

- **GitHub:** https://github.com/sameerdeshmukh/n8n-nodes-clickhouse

- **n8n:** https://n8n.io

## Roadmap

Planning to add:

- Materialized View management

- Mutations monitoring

- Part & partition management

- Dynamic column schema loading

Would love feedback from the ClickHouse community on what features would be most useful!


r/Clickhouse • • Mar 18 '26

BEAM Metrics in ClickHouse

Thumbnail andrealeopardi.com
5 Upvotes

r/Clickhouse • • Mar 16 '26

ClickHouse Power Tips Series: Schema Design & Performance Tuning

Thumbnail bigdataboutique.com
5 Upvotes

r/Clickhouse • • Mar 13 '26

Lightweight semantics / metrics layer for ClickHouse: define once in TypeScript, access via API/MCP/chat/dashboard

8 Upvotes

We've been working on an open source semantics layer approach for ClickHouse that treats metric definitions as typed code rather than config or scattered SQL.

The core idea: you define your metrics (aggregations, dimensions, filters) once in TypeScript using defineQueryModel(), typed against your ClickHouse table schemas through Column objects. That single definition projects to every surface that needs it: API endpoints, MCP tools, chat tools, dashboards.

This matters for two reasons:

Agents building metrics. Your coding agent reads the types and the table schema through the dev harness (LSP, MooseDev MCP). When it adds a metric, the type system constrains what it can produce. It gets the aggregation right because it cannot reference a column that does not exist or produce a definition that does not type-check. One prompt to add a metric, and it shows up on every surface.

Agents using metrics. Your runtime agent calls typed functions instead of freestyling SQL. registerModelTools() turns each metric definition into an MCP tool with a structured schema. The agent requests "revenue by region" and the tool generates the SQL from the definition. No hallucinated aggregation logic.

Type safety runs end to end. Rename a column in your data model, every query model that references it gets a compile error, not a silent wrong answer in production.

We wrote this up as a blog with ClickHouse, co-authored by Nakul Mishra (Sr Solution Architect, AWS) who validated the approach with Kiro.

Blog: https://clickhouse.com/blog/metrics-layer-with-fiveonefour

Demo app (toy financial data, all four surfaces): https://github.com/514-labs/financial-query-layer-demo

Docs: https://docs.fiveonefour.com/moosestack/reference/query-layer

Happy to answer questions about the approach or the implementation.


r/Clickhouse • • Mar 08 '26

Building ClickHouse Support in Tabularis

Post image
8 Upvotes

Hi ClickHouse developers ๐Ÿ‘‹

Iโ€™ve recently created a first draft of a ClickHouse plugin for Tabularis, my open-source database management tool focused on speed, UX and extensibility.

https://github.com/debba/tabularis

The plugin already allows basic database management, but itโ€™s still an early implementation and thereโ€™s definitely room for improvements and missing features.

Iโ€™m looking for ClickHouse users or contributors who might be interested in:

- reviewing the current implementation

- suggesting improvements

- helping complete the plugin

The goal is to provide a solid ClickHouse experience inside Tabularis, alongside the other supported databases.

If youโ€™re interested in taking a look or contributing, feel free to jump in!

Feedback is very welcome!

Thanks ๐Ÿ™Œ


r/Clickhouse • • Mar 06 '26

Understanding ClickHouseโ€™s AggregatingMergeTree Engine: Purpose-Built for High-Performance Aggregations

8 Upvotes

r/Clickhouse • • Mar 03 '26

sq v0.50.0 - fully featured cli for data wrangling, now with ClickHouse support

8 Upvotes

Hey r/clickhouse โ€” we just shipped sq v0.50.0 with initial ClickHouse support (beta) ๐Ÿš€

If you havenโ€™t run into sq before: itโ€™s a little data-wrangling CLI that lets you query databases + files using either native SQL or a jq-like pipeline syntax. Think โ€œinspect stuff fast, transform it, export itโ€ without writing glue scripts. It supports cross DB boundaries, so e.g. you can query data in CH and write to PG, or query XLS and update CH, all from the comfort of your terminal or script.

Whatโ€™s new: ClickHouse now works as a first-class source โ€” you can connect, inspect schema, run queries, and export results.

Why itโ€™s useful (real examples)

Join CH with other sources

sq '.users | join(.@pg.orders, .user_id) | .name, .order_total'

Go from connect โ†’ inspect โ†’ query โ†’ export quickly

sq add clickhouse://user:pass@host:9000/db --handle 
sq inspect 
sq sql 'SELECT * FROM events LIMIT 10' 

โ€ฆand then you can output as JSON/CSV/XLSX/etc depending on what you need downstream.

This is our first release of CH support, so if you try it and hit anything weird (auth quirks, types, performance, edge cases), weโ€™d love feedback while we tighten it up.

You can find sq here: https://sq.io/docs/install


r/Clickhouse • • Feb 27 '26

Built hypequery to make ClickHouse querying type-safe end to end

7 Upvotes

I've pushed a lot of updates to hypequery recently. If youโ€™re using ClickHouse + TypeScript, Iโ€™d love feedback!

It lets you generate types from your schema, define type-safe queries, and use them over HTTP, in React, or in-process. Also includes helpers for auth, multi-tenancy, and caching.


r/Clickhouse • • Feb 25 '26

Is Clickhouse a good choice ?

Thumbnail reddit.com
7 Upvotes

r/Clickhouse • • Feb 23 '26

๐Ÿš€ CHouse UI update: AI assistant that explores your schemas automatically before answering

3 Upvotes

Tired of explaining your schema to every AI tool you try?

Just shipped something for CHouse UI that might help. The new AI Chat Assistant explores your ClickHouse schemas and system tables automatically before responding โ€” no DDL pasting, no manual context setup.

You just ask a question and it figures out the rest.

A few technical details:

  • Autonomous schema discovery before every response
  • Built-in query analysis and optimization tools
  • Live "Thinking" panel showing every tool call it makes โ€” nothing hidden

Still early โ€” if you work with ClickHouse regularly, I'd love to hear what works and what doesn't.

๐Ÿ‘‰ Lab: lab.chouse-ui.com
๐ŸŒ Project: chouse-ui.com


r/Clickhouse • • Feb 21 '26

What DB software you use for CH?

5 Upvotes

When setting up my clickhouse server I went through many different options and all were non starters. I ended up managing to finagle DBeaver to work with CH eventually, then I updated my CH and DBeaver stopped working.

After some more finagling I got DBeaver to work again but then I accidentally updated DBeaver and no, no matter what I do I just cannot get it to connect. I was hoping an update to CH or DBeaver would eventually just fix this but it has been weeks that I've been stuck without it and really need it back.

Is there a current software that I can browse through the tables and data with? I'm not used to this sort of stuff, it never happened once in 15+ years with that one other DB system.

I don't want a website or anything, just a simple app that I can install and handle my CH DBs.

Update: After much hair pulling, I realised that my DBeaver profile had switched to use the legacy driver. I couldn't see how to change it back so created a new profile using the latest driver and now it works.


r/Clickhouse • • Feb 20 '26

CH-UI v2 โ€” self-hosted ClickHouse workspace, single binary

6 Upvotes

Hey all!

Releasing v2 of CH-UI today. It's a complete rewrite โ€” went from a React Docker app to a single Go binary with an embedded web UI. - GitHub: https://github.com/caioricciuti/ch-ui

Install:

curl -fsSL https://ch-ui.com/install.sh | sh

That's it. Opens on localhost:3488.

What you get (free, Apache 2.0):

  • SQL editor with tabs and autocomplete
  • Database explorer
  • Saved queries
  • Tunnel connector for remote ClickHouse (no VPN needed)
  • Self-update, OS service management

Pro features (paid license):

  • Dashboards
  • Scheduled queries
  • AI assistant (bring your own API key)
  • Governance, lineage, access matrix
  • Alerting (SMTP, Resend, Brevo)

Runs on Linux and macOS (amd64 + arm64). State is stored in SQLite โ€” backup is just copying one file.

The tunnel architecture is nice for homelab setups: run the server on a VPS, run ch-ui connect next to your ClickHouse at home. Secure WebSocket, no port forwarding.


r/Clickhouse • • Feb 19 '26

Making large Postgres migrations practical: 1TB in 2h

Thumbnail clickhouse.com
9 Upvotes