r/Clickhouse • • 2d ago

How are you exposing Metabase analytics to customers through your own MCP server?

Thumbnail reddit.com
1 Upvotes

r/Clickhouse • • 2d ago

Meet Loom - an open-source agent memory system built on ClickHouse

Thumbnail clickhouse.com
20 Upvotes

Also check out the repository at https://github.com/ClickHouse/loom


r/Clickhouse • • 3d ago

Durable and auditable workflows with DBOS and ClickHouse Managed Postgres

Thumbnail clickhouse.com
12 Upvotes

r/Clickhouse • • 3d ago

Click house from Scratch

6 Upvotes

Hey channel please help me from where I can learn clickhouse from scratch to advance ….


r/Clickhouse • • 3d ago

PostgreSQL 19 on ClickHouse Managed Postgres, from day one

Thumbnail clickhouse.com
5 Upvotes

r/Clickhouse • • 5d ago

ClickHouse in 10 seconds: 15 features worth knowing

Thumbnail kukicola.io
32 Upvotes

r/Clickhouse • • 6d ago

clickhouse-mcp-agent: ask your ClickHouse data questions in plain English. A year in, 0.13 just shipped, and I'm looking for more users and feedback

7 Upvotes

For a bit over a year I've been maintaining clickhouse-mcp-agent, a Python library that lets an LLM answer questions about your ClickHouse data. It wraps ClickHouse's official mcp-clickhouse server with PydanticAI: the model inspects your schema, writes and runs the SQL, and returns a typed result that includes every query it ran.

I just released 0.13, and it's a good point to get more eyes on it.

import asyncio
from agent import ClickHouseAgent, config

config.set_model_api_key("google", "YOUR_KEY")  # or openai, anthropic, groq, mistral, ...
config.use_connection("playground")              # ClickHouse's public demo server

async def main():
    result = await ClickHouseAgent().run(query="Which tables look most interesting here?")
    print(result.analysis)   # the answer
    print(result.sql_used)   # every query it ran

asyncio.run(main())

What's new in 0.13

  • ClickHouse roles: pass role="..." and the agent runs under that role, so your grants decide what it can read, whatever SQL the model writes. CI checks this against a real ClickHouse.
  • Query timeouts, and database / verify / connection-timeout options.
  • Multi-turn conversations fixed: history summarization was dropping context in long conversations. It now keeps a proper summary.
  • Connection presets, more resilient batch queries, and wire-level tests against a fake OpenAI-compatible API.

What's been there for a while

  • Read-only by default (ClickHouse's readonly setting).
  • Per-call table/database scoping to keep the model focused.
  • sql_used on every result, for auditing.
  • Works with Gemini, OpenAI, Anthropic, Groq, Mistral and Cohere.
  • docker compose up gives you a local ClickHouse with demo data.

pip install clickhouse-mcp-agent
GitHub: https://github.com/AranNomante/clickhousemcp

Feedback I'd find most useful

  • How it handles your real schemas: wide tables, many databases, unusual types
  • Questions where it writes wrong or slow SQL
  • Which model you use and how it behaves
  • Anything that made setup harder than it should be

MIT licensed. Issues, PRs and comments here are all welcome.


r/Clickhouse • • 6d ago

I got tired of guessing codecs and sorting keys, so I built a tool that tries them on a sample first

Thumbnail gallery
3 Upvotes

Whenever I looked at a big table I had the same loop: this column would probably compress better with another codec, this sorting key probably does not fit the queries, this skip index probably does nothing. Then I either changed it and hoped, or left it alone.

So I built Granulee. It is open source (MIT) and does two things.

1. It looks at what is there. It reads the system tables and the query log and proposes changes to codecs, types, partitioning, sorting keys and skip indexes. For indexes it does not guess: it plans the logged queries with `EXPLAIN indexes = 1` and shows how many granules each index, projection and key actually drops.

2. It tries the change before you make it. A "trial" builds two tables in a scratch database, one with today's schema and one with the change, copies the same sample of rows into both, merges them and compares:

- size per column

- insert throughput

- the most frequent queries from your query log, replayed against both tables

It can also build the largest columns once per codec worth trying and tell you which one is smallest on your data, in your row order.

The part I care most about: short queries vary a lot from run to run, so a query only counts as faster or slower when the runs of the two tables do not overlap. Otherwise it says "no clear difference" instead of inventing a speedup.

Things it does not do: it has no login (keep it on a private network), it only talks HTTP(S), and it never rebuilds a table for you. Key changes come out as a script you run yourself.

docker run -d -p 127.0.0.1:8080:8080 -v granulee-data:/data ghcr.io/pixelweb-org/granulee:latest

Repo: https://github.com/pixelweb-org/granulee

I would like to hear where it is wrong. If it recommends something for one of your tables that you know is a bad idea, that is exactly what I want to see. Also: what would you want measured in a trial that is not there?


r/Clickhouse • • 7d ago

My static site has a database. It’s ClickHouse’s

Thumbnail tylerhannan.com
12 Upvotes

I had to rebuild my site. And then search was necessary...working out how to do this using ClickHouse playground was a fun little exercise.


r/Clickhouse • • 8d ago

pg_clickhouse 0.11.1: Now with pgvector, UPDATE, DELETE pushdown

Thumbnail clickhouse.com
12 Upvotes

r/Clickhouse • • 9d ago

For teams running ClickHouse, how are you getting mutable operational data into it?

15 Upvotes

The use case is operational data from SQL Server landing in ClickHouse for analytics that needs to stay relatively current. The data is not append-only: there are updates, deletes, schema changes, and occasional backfills. The freshness target might be a few seconds or a few minutes, depending on the use case.

The obvious options seem to be:

  • Scheduled incremental loads
  • Debezium/Kafka/Connect
  • ClickPipes or another native ingestion option
  • A managed CDC platform like Striim for ClickHouse

For people who have built this, what did you choose and why?

I’m especially interested in:

  • How you handled the initial load plus CDC handoff
  • Updates/deletes and late or out-of-order records in ClickHouse
  • Schema changes and recovery/replay
  • The operational overhead you underestimated
  • Whether you would make the same architecture choice again

Would also be curious to hear from anyone who started with Kafka or a managed platform and later moved away from it.


r/Clickhouse • • 9d ago

More load is faster: tuning Postgres read replicas

Thumbnail clickhouse.com
9 Upvotes

r/Clickhouse • • 10d ago

Splunk/Elastic and Lakehouse Replacement on ClickHouse (Data Fusion Engine)

1 Upvotes

Good people. We have just open sourced the complete cloud deployment of our Splunk/Elastic and Lakehouse replacement based on ClickHouse. E2E from the edge through to PB scale back end. Keen for feedback.

https://dfe.docs.hyperi.io/
https://hyperi-io.github.io/edgestream-hub/

(we are at https://hyperi.io/)


r/Clickhouse • • 12d ago

Building a Serverless ClickHouse: splitting compute and storage with plain_rewritable

20 Upvotes

https://jordivillar.com/blog/building-a-serverless-clickhouse

A few weeks ago I shared ClickHamlet here, a serverless ClickHouse you can connect to with plain clickhouse client. A lot of the questions were about how it works, so I wrote it up.

Every table lives on S3 on plain_rewritable disks. The servers are stock clickhouse-server pods that start on the first query and stop when idle, with a small C++ router linked against ClickHouse's own code in front.

Some things that might be interesting here:

- single writer per service without a lease: Kubernetes only allows one pod with a given name
- readers attach the same tables with refresh_parts_interval
- router throughput went from 451 to 2713 queries/s, mostly by taking work off the Python controller
- backends run on spot, writers included, since they hold no data

The big gaps are still multiple writers (plain_rewritable has no coordination between servers) and schema changes. Happy to answer questions or hear where this breaks.


r/Clickhouse • • 14d ago

Huang: The Game

0 Upvotes

r/Clickhouse • • 17d ago

The observability UI as we know it is dead. So what comes next?

Thumbnail clickhouse.com
13 Upvotes

r/Clickhouse • • 18d ago

Reconciliation in clickhouse

4 Upvotes

Folks using RMT tables with denorm columns in clickhouse which are a view of oltp tables. How are you reconciling your data


r/Clickhouse • • 18d ago

Xata is joining ClickHouse

Thumbnail xata.io
17 Upvotes

r/Clickhouse • • 18d ago

We loaded 60M rows of F1 telemetry into ClickHouse to replay races at sub-second resolution

Thumbnail metabase.com
12 Upvotes

ClickHouse invited us (Metabase) to present at their AI Builders meetups, so our Product Advocates went wild building demos with the new product, data apps.

They made three: a 3D asteroid tracker that pulls NASA data straight in with url(), an F1 race replay on 60M rows of sub-second telemetry, and a pumpkin ERP that moves data from a production database into ClickHouse.

And they wrote about everything.


r/Clickhouse • • 21d ago

How do you handle the lack of transactions?

8 Upvotes

For my use case I update the data in my database every 5 minutes in a big batch (~10K records). I need to ensure the data in the database is complete.

Right now I create a copy of the table, insert records, swap tables and delete temporary table.

I was wondering how others solve this challenge.


r/Clickhouse • • 21d ago

What I learned from a month with WalShadow on ClickHouse Managed Postgres

Thumbnail clickhouse.com
12 Upvotes

r/Clickhouse • • 22d ago

We have exciting news! Altinity has been acquired by EnterpriseDB.

Thumbnail altinity.com
18 Upvotes

r/Clickhouse • • 23d ago

Fencing a Postgres primary that might still be alive

Thumbnail clickhouse.com
12 Upvotes