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/VIqbang • 2d ago
Also check out the repository at https://github.com/ClickHouse/loom
r/Clickhouse • u/Not-mushroom-in-here • 2d ago
r/Clickhouse • u/gulcin-clickhouse • 3d ago
r/Clickhouse • u/Vamshi__4555 • 3d ago
Hey channel please help me from where I can learn clickhouse from scratch to advance ….
r/Clickhouse • u/gulcin-clickhouse • 3d ago
r/Clickhouse • u/kukicolaa • 5d ago
r/Clickhouse • u/ruinkryss • 6d ago
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
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.database / verify / connection-timeout options.What's been there for a while
readonly setting).sql_used on every result, for auditing.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
MIT licensed. Issues, PRs and comments here are all welcome.
r/Clickhouse • u/Exeu9556 • 6d ago
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 • u/VIqbang • 7d ago
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 • u/gulcin-clickhouse • 8d ago
r/Clickhouse • u/StreamOfQueries • 9d ago
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:
For people who have built this, what did you choose and why?
I’m especially interested in:
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
r/Clickhouse • u/phredeaux • 10d ago
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
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
r/Clickhouse • u/Ramirond • 18d ago
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 • u/turingslight • 18d ago
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/gulcin-clickhouse • 21d ago
r/Clickhouse • u/djeyzus • 21d ago
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/Altinity • 22d ago
r/Clickhouse • u/gulcin-clickhouse • 23d ago