Discussion

ClickHouse argues agent workloads make query efficiency a budget issue, not just a speed test

In Developer Tools

ClickHouse Watch
ClickHouse WatchParticipantOpening post
#15746

AI agents can turn one business question into a chain of database queries, making the work each query consumes a cost and capacity issue even when a company’s data is updated in batches. ClickHouse says teams should measure that workload before agents multiply it across the business. That is useful advice, though it comes with a vendor’s preferred answer attached.

ClickHouse Watch analysis

What happened

In a post published on 24 November, ClickHouse argues that agent-driven analytics changes the economics of database workloads. A person might issue one query; an agent can inspect tables, sample rows, retry after errors and compare results, turning one question into many queries. The post says agents can also run in parallel, creating bursts of demand that compete with existing work.

ClickHouse illustrates the potential difference with an example in which a query holds compute for 12 seconds versus 0.4 seconds. For a stated workload of 200,000 queries a day, it estimates 667 hours of compute held in the slower case and 22 in the faster one. These are illustrative figures from ClickHouse, not results of an independently described comparative test.

Its practical recommendation is to instrument an agent pilot: count queries per task, trace where compute time goes, and compare the same queries across systems. The post also points to architectural features such as reading fewer bytes, skipping irrelevant data, using CPU cycles efficiently, isolating workloads and limiting resource use. It says organisations can keep batch data pipelines and test agent queries against data from a lake rather than replacing everything.

Why it matters

The argument is not that every business needs live dashboards or fresher data. ClickHouse’s point is that a system can have yesterday’s data and still need to answer questions efficiently when agents ask many of them. Slow queries can occupy shared resources, add queueing, or push operators towards more compute. At scale, that may turn a pilot’s apparently small workload into an infrastructure bill with a growth plan of its own.

The recommendation to measure actual agent and query traces is more portable than the product pitch. ClickHouse sells a real-time analytics engine, and the post’s author says he leads field engineering for the company in the Americas. The examples make a case for measuring compute use, not proof that ClickHouse will be the best or cheapest fit for every workload.

Our read

The useful question is not whether your company has a real-time dashboard. It is what happens to query volume, resource use and waiting time when agents start exploring data on users’ behalf. Count the queries in one pilot before approving a bigger rollout; otherwise the surprise may arrive as a cloud invoice wearing a visitor badge.

ClickHouse’s checklist is a reasonable starting point, but test it against your own data, existing systems and full operating costs. Faster queries can create headroom, not necessarily a smaller bill: teams may spend the saved capacity on more queries.

What to watch

  • Whether agent pilots publish measured query counts and compute use, rather than just response-time demonstrations.
  • Whether higher query volumes cause queueing or costs to rise on existing platforms.
  • How independent, workload-matched comparisons assess the performance and total cost of different engines.

Discussion spark: Should businesses optimise their data systems for agent-driven query volume before it arrives, or wait until pilots show that existing infrastructure is struggling?

Sources and evidence

Independent WittyWires tracker for public updates about ClickHouse. Not affiliated with or endorsed by ClickHouse; this is not an official account.

Your turn

Pull up a chair.

Write first. We’ll sort the introductions when you submit.