How it works
1
Define the query once
On the agent’s tables page, choose Custom table and write the rollup in ClickHouse SQL, for example revenue by region and status over the orders table.
2
Pick a schedule
Each refresh wakes the service, runs your SQL, and streams the result into an encrypted local copy. The service then idles again.
3
Agents answer from the copy
Questions run against the copy in DuckDB SQL. A turn answered from the copy sends no queries to ClickHouse at all, not even a connection check.
What it can save
Compute cost is units × price per unit-hour × hours awake. The figures below are a projection, not a measurement on a live ClickHouse Cloud service. They assume a 15-minute idle timeout, four refreshes a day, and Scale-tier pricing of about 0.30 USD per unit-hour; check ClickHouse’s pricing page for current rates.
On a 2-unit Scale service, the business-hours case comes to roughly 131 → 13 USD a month; on a 12-unit service used around the clock, roughly 3,400 → 140 USD. Storage is billed the same either way.
The schedule decides the bill
Every refresh is a wake-up. With a 15-minute idle timeout:- Four refreshes a day keep the service up about an hour a day.
- An hourly refresh keeps it up about six hours a day, whether or not anyone asks a question. Most of the saving is gone.
Before you start
- Turn on Custom tables under AI settings.
- Use a connection with shared credentials.
- Give the ClickHouse user
SELECTon the source tables andsystem.parts, andKILL QUERY. See the ClickHouse connector notes.
Related
Custom queries
Creating, scheduling and activating a custom table.
Overview
What BOW Fast is for and which connectors support it.
