Docs menu

Warm Query

A warm query is a named, saved query over your data. When you deploy it, it becomes an API endpoint - so people, dashboards, and any AI (through call_api) can all read the same answer. The endpoint serves the version last deployed, so a saved change serves after Deploy.

That's what makes it a shared source of truth: instead of everyone (and every AI) writing their own version of "active users this week," you crystallize it once, and everyone builds from the same one. Get the answer right in one place, use it everywhere.

A warm query is made of steps. Each step runs one query text on one engine: KQL (kql) over your data connections, or Cosmos SQL (cosmos-nosql) over one container of a database. A later step can use an earlier step's values, which is how sources combine: the keys of one step (its distinct device ids, say) become a typed parameter the next step filters by, so only the keys cross from one engine to the other. A query can also take typed parameters from its caller. You can read and tweak what Thinky proposes. A warm query lives inside a surface, and each one you save is another source your team's AI can call - and something the next query or workbench can build on. Its peer, built from code instead of data, is the workbench.

On fathym.com: OpenX warm queries →

On this page