Top Tweets for #ClickHouse
If you run ClickHouse on object storage, check ProfileEvents['SelectedParts'] in system.query_log for your hottest query. On our batch table that page selected 791 parts; on the read copy, 1.
A projection can't fix this: it lives inside each part. We checked on a copy loaded the same way (1,076 parts). ClickHouse read the projection in order, and the page still opened 860 parts and took ~2 s.

On self-hosted ClickHouse servers with parts on local NVMe, opening a part is a local file read, so each extra part costs far less.
The same page of our Hacker News app, the same 25 stories: about 2 seconds on one ObsessionDB table (using ClickHouse® engine), 12 ms on another.
The difference was the number of parts.
We load Hacker News in batches, one partition per batch, so any batch can be retried and swapped in atomically. ClickHouse doesn't merge across partitions, and ObsessionDB inherits that, so the original table sits at 791 parts.
The newest-stories page opened all 791.
@getnachonacho clickhouse and sqlite in progress then mongo db
@JE4NVRG Yes you can set Readonly flag while adding connection.
SQLite and Clickhouse in roadmap also open to contribution https://t.co/IMTEFfZSbJ
ran a hosting company. had to shut it down.
the one thing worth keeping: the db proxy we built to run customer databases on k8s
postgres, redis, clickhouse, mongo behind one proxy, auto tls included. open sourced it so it doesn't die with the company
https://t.co/W3tT5y8zlH
brutal feedback welcome 🙏
@planA_thru_Z @danielisdizzy You need to consider clickhouse and other companies NBIS owned and deduct the market cap for your analysis
Fix 2: our sort key started with session_id, but every query filtered by org. On a multi-tenant table that breaks ClickHouse's prefix rule.
ORDER BY (org_id, ts, session_id): 5–6× faster for our biggest org, 10–50× for small ones.
Fix 1: a list page polled every 5 s selected that payload on every call.
3.4 GiB of memory per call. Two users at once and ClickHouse ran out of memory.
Stop selecting the payload: 431× smaller responses, 100× faster.
In January I wrote about deleting the 2,000 lines of tooling we had built to keep ReplicatedMergeTree running at 3am, and rebuilding our ClickHouse® setup on shared storage instead. That rebuild became ObsessionDB.
We opened signups in June. Today we are launching with YC, and our clients serve APIs from dataset with 50TB+.
https://t.co/JWNeOSINYl
CRM, call transcripts, tickets, PRs and Slack in one ClickHouse® database. "Every call that mentions pricing, newest first, with its CRM links" went from grepping folders to one SELECT.
Our agents have read-only SQL over the whole company: CRM, call transcripts, tickets, PRs, Slack and docs, in one ClickHouse® database.
ObsessionDB and the MCP server hold the limits, so a confused agent can't break it.
The main advantage? Any harness can use it. Claude Code, Codex, Cursor and cloud agents connect with a sign-in and nothing checked out. Our git repo still works where it's cloned and configured, it just stopped being a requirement.
Questions that crossed sources became one query. Every call transcript that mentions pricing, newest first, with what each call links to in the CRM: one SELECT, no grep across folders.
It's much faster than searching files, and every teammate's agent reads the same rows.
None of it is safe without the limits underneath:
- readonly=1, which also blocks SETTINGS inside the SQL, so an agent can't lift its own limits
- 60 s per query
- 500 rows max (the tool fetches 501 to know there's more)
- 2 GB of memory, big sorts spill to disk instead of failing
- 4 queries at a time per request
- the caller on every query in system.query_log
We shipped the MCP server on Oct 1. Since then any agent we start, on a laptop or in the cloud, can look up a customer before it answers.
As ClickHouse® service providers, we give companies the tools to handle this at the database level.
The agent connects as its own ClickHouse user with its own permissions and limits, having access only to the info it can access based on the use case and security. We have configured MCPs and CLI tools for it.
We also cap concurrency and max rows returned, so the database is healthy and the context is not filled with garbage.
The harness is usually handled by the client, unless the use case is internal (we do have some too)
Agent queries in our tests read 250x fewer rows than the analyst's and took about as long. On ClickHouse® a key lookup still opens every part that might hold the key, so row counts stop predicting latency.
https://t.co/t2hQwfqjVy
Agents don't query your database like people do, and the cluster you tuned for people isn't sized for them.
In our tests, agents and analysts hit the same 200B-row ClickHouse® dataset.
The median agent query read 0.54M rows. The analyst's read 134M, in about the same time. A key lookup still opens every part that might hold the key, so rows stop predicting latency.
1 agent to 16 in parallel: 3x the queries sent, under 2x the answers back. The fleet read under 1 GB a minute while it stalled. The limit was lookups in flight, nowhere near bandwidth.
2 reports running on the same nodes as 8 agents: zero agent lookups answered in a minute.
Our setup for agent callers now:
- agent work on its own compute, over one copy of the data
- a cache sized to what agents re-read (a repeat lookup came back 12x faster)
- the entity first in ORDER BY on the tables agents hit
fewer, larger parts on lookup tables
- a guarded SQL tool: read-only, 500 rows, 60 s timeout, 4 queries at a time
Per-query pricing punishes this pattern. One agent question took 7 queries in our tests, and each one is a line on the bill.
The model writes the query. The harness and the database decide whether an answer comes back.
Full write-up: https://t.co/7y5tWYtFzd

@planA_thru_Z What about clickhouse and their Av play. Has that been factored in for $NBS
What we got from @AnthropicAI 🔥
- Claude Premium Seat (Max 5x) for 1 Year
- $5000 for Clickhouse cloud credits
- Claude Standard Seats 2x
- $1000 Claude API Credits
- Elevan Labs Pro for 12 months
- Granola for 3 months
- $100 Cosmos Credits
- 6 months of Hex
- Moda 3 months free with $3000 credits
- Runable $300 credits
- 6 months of Linear
- $1500 for Viktor

Day 102 of building in public: deploying our real-time ClickHouse usage metering pipeline.
We spent the last month replacing our legacy PostgreSQL billing crons with an event-driven engine. Here are the 24-hour receipts:
- Telemetry events tracked: 14.2M usage events processed across 840 active SaaS accounts
- Ledger update latency: median 38ms between API consumption and credit deduction
- Uncollected overages: $0 in bad debt recorded across the entire weekend billing run
- Infrastructure costs: ClickHouse cluster runs at $180/mo, replacing $1,200 in DB workers
Real-time usage tracking protects platform margins and gives customers total visibility.
SaaS operators: how do you handle usage metering for high-throughput AI and API endpoints?
This week I wrote down where a ClickHouse® bill comes from, using our own clusters.
The price per unit barely moves between providers. The bill moves with how many copies you keep, how big your nodes have to be, and how many bytes you store.
A ClickHouse® bill has four lines: compute, compressed storage, transfer, and on warehouses, a charge per query.
The price per unit barely differs between providers. Storage per compressed TB sits close to what S3 itself charges.
The bill comes down to how many units you need:
Agents run far more queries than dashboard users. On a per-scan warehouse, that volume is the bill. On ClickHouse, it is utilization of nodes you already pay for.
We wrote up the rest of the cost math: copies, bandwidth, compression.
A ClickHouse® bill has four lines: compute, compressed storage, transfer, and on warehouses, a charge per query.
The price per unit barely differs between providers. Storage per compressed TB sits close to what S3 itself charges.
The bill comes down to how many units you need:
@devoted_devil It's an execution logs, But it's clear now.
Did some research and Clickhouse will be overkill to add from the start
It make sense when I have to show users some sort of analytics based on the logs
@amit_y11 What kind of logs are you talking about? Audit logs? Error log, monitoring or some other?
Click house is built for Analytics. I am primarily using Clickhouse for reporting on https://t.co/8pWeBoYuRO
Hello everyone 👋
I’d love some advice: should I use Postgres for storing logs in my project, or should I go with ClickHouse from day one?
Would love to hear what you’d choose and why
@itsvlady Indeed, but at least we figured out horizontal scaling with the decoupled storage in S3, so the nodes can be scaled quite fast if needed (not like in self-hosted ClickHouse)
A year ago, I was on call for ClickHouse® clusters where adding a node meant days of copying data.
Today we published how the database we built scales instead: one copy on object storage, nodes that join without moving a byte, and merges that stay local.
Receipts are in the post.
Adding a node to a stock ClickHouse® cluster makes merges more expensive. The arithmetic and what we run instead:
OpenAI shipped a Data agent in ChatGPT Work today. Type @data, ask a question in English, get a dashboard.
It connects to Redshift, BigQuery, Snowflake, Databricks, MongoDB, ClickHouse and Datadog, and can pull files from Drive and SharePoint into the same analysis.
Everyone will read this as "SQL is dead." Read the fine print instead.
OpenAI says nearly all of its product team and two thirds of its go-to-market organisations already use this internally. Then they explain why it works: an internal data team that created shared business definitions, set access rules, and put safeguards in place.
That's the whole thing. Their own writeup on the internal version says models writing SQL directly is notoriously unreliable, because schemas mislead, business logic is invisible to the model, and how a metric is actually defined rarely lives in a database column.
So they built six context layers to fix it. Table metadata, canonical metric definitions, Slack and Notion for institutional knowledge.
Translation: the agent works because someone did the modelling first.
If your warehouse has three tables that look like revenue and nobody's agreed which one counts, this tool will confidently pick one. The question was never whether AI can write SQL. It's whether your organisation knows what it's asking for.
The job that survives this isn't writing queries. It's defining what the numbers mean.
JUST IN: OpenAI unveils “Data agent” for ChatGPT Work, connecting to company databases to analyze data without writing queries.
Last Seen Hashtags on Sotwe
Most Popular Users

Elon Musk 
@elonmusk
240M followers

Barack Obama 
@barackobama
118.6M followers

Cristiano Ronaldo 
@cristiano
114.4M followers

Donald J. Trump 
@realdonaldtrump
111.7M followers

Narendra Modi 
@narendramodi
106.9M followers

Rihanna 
@rihanna
98.6M followers

NASA 
@nasa
92.1M followers

Justin Bieber 
@justinbieber
91.7M followers

KATY PERRY 
@katyperry
89.9M followers

Taylor Swift 
@taylorswift13
83.9M followers

Lady Gaga 
@ladygaga
75.4M followers

Virat Kohli 
@imvkohli
73.3M followers

Kim Kardashian 
@kimkardashian
70.8M followers

YouTube 
@youtube
68.6M followers

Neymar Jr 
@neymarjr
66.3M followers

Bill Gates 
@billgates
65.2M followers

Selena Gomez 
@selenagomez
63M followers

The Ellen Show
@theellenshow
62.1M followers

CNN 
@cnn
61.7M followers

X 
@x
60.6M followers












