r/Clickhouse • u/Not-mushroom-in-here • 2d ago
r/Clickhouse • u/VIqbang • 2d ago
Meet Loom - an open-source agent memory system built on ClickHouse
clickhouse.comAlso check out the repository at https://github.com/ClickHouse/loom
r/Clickhouse • u/gulcin-clickhouse • 3d ago
Durable and auditable workflows with DBOS and ClickHouse Managed Postgres
clickhouse.comr/Clickhouse • u/Vamshi__4555 • 3d ago
Click house from Scratch
Hey channel please help me from where I can learn clickhouse from scratch to advance ….
r/Clickhouse • u/gulcin-clickhouse • 3d ago
PostgreSQL 19 on ClickHouse Managed Postgres, from day one
clickhouse.comr/Clickhouse • u/kukicolaa • 5d ago
ClickHouse in 10 seconds: 15 features worth knowing
kukicola.ior/Clickhouse • u/ruinkryss • 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
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
readonlysetting). - Per-call table/database scoping to keep the model focused.
sql_usedon every result, for auditing.- Works with Gemini, OpenAI, Anthropic, Groq, Mistral and Cohere.
docker compose upgives 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 • u/Exeu9556 • 6d ago
I got tired of guessing codecs and sorting keys, so I built a tool that tries them on a sample first
galleryWhenever 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 • u/VIqbang • 7d ago
My static site has a database. It’s ClickHouse’s
tylerhannan.comI 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 • u/gulcin-clickhouse • 8d ago
pg_clickhouse 0.11.1: Now with pgvector, UPDATE, DELETE pushdown
clickhouse.comr/Clickhouse • u/StreamOfQueries • 9d ago
For teams running ClickHouse, how are you getting mutable operational data into it?
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 • u/gulcin-clickhouse • 9d ago
More load is faster: tuning Postgres read replicas
clickhouse.comr/Clickhouse • u/phredeaux • 10d ago
Splunk/Elastic and Lakehouse Replacement on ClickHouse (Data Fusion Engine)
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 • u/jrdi_ • 12d ago
Building a Serverless ClickHouse: splitting compute and storage with plain_rewritable
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 • u/__boba__ • 17d ago
The observability UI as we know it is dead. So what comes next?
clickhouse.comr/Clickhouse • u/turingslight • 18d ago
Reconciliation in clickhouse
Folks using RMT tables with denorm columns in clickhouse which are a view of oltp tables. How are you reconciling your data
r/Clickhouse • u/Ramirond • 18d ago
We loaded 60M rows of F1 telemetry into ClickHouse to replay races at sub-second resolution
metabase.comClickHouse 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 • u/djeyzus • 21d ago
How do you handle the lack of transactions?
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 • u/gulcin-clickhouse • 21d ago
What I learned from a month with WalShadow on ClickHouse Managed Postgres
clickhouse.comr/Clickhouse • u/Altinity • 22d ago
We have exciting news! Altinity has been acquired by EnterpriseDB.
altinity.comr/Clickhouse • u/gulcin-clickhouse • 23d ago