Semantic Layer and Read Path
Konsolidat has one read path: the konsol app (konsol.api.epm_* and the report endpoints) queries the ClickHouse gold models directly through konsol/clickhouse.py. The K. worksheet functions, the Desk reports and the REST API all use it, so authentication, entity-level permissions and write-back live in one place.
The semantic layer is the Dataset / Measure registry in konsol. Each site declares its dimensions, measures and datasets there. konsol writes them into the dbt_project.yml vars, and dbt builds the gold models from them. Measure logic lives in dbt, not in a client. (cube_type on Dimension and Measure is the type or aggregation of a dimension or measure; six konsol modules read it, and the name is historical.)
Cube.js was removed (2026-11-07)
Until 2026-11-07 this page described two read paths, with Cube.js as a "core semantic layer" that would scale reads to 50–500 users. That conclusion was written on 2026-09-16 and had no owner. konsol#232, ratified by Deepak Pai on 2026-11-07, decided that konsol does not wire Cube into the read path, and konsolidat#283 removed it from the stack rather than leave it deployed and idle. Measured before removal: nothing in konsol called it, the Caddyfile proxied a konsol.cube_proxy endpoint that never existed, and the container used 100 MiB RSS at 0% CPU on every deploy.
Rejected: keep Cube deployed but idle; leave the question open.
On an existing stack, docker compose up -d --remove-orphans at the next deploy removes the stopped konsolidat_cubejs container; Cube had no named volume. CUBEJS_* lines left in an existing .env do nothing and may be deleted.
Reopen conditions (kept on konsol#232)
- a measured query near one second after the read-path work in konsol#231;
- a BI client that needs a semantic layer;
- concurrency, rather than latency, becoming the limit.
If the BI case arrives, the Dataset / Measure registry is the semantic layer, and ClickHouse views over gold are the first answer, not Cube.
Quick decision guide
- Building a formula, report or write-back feature →
konsol.api. - Adding a metric → declare it in the Measure registry; dbt builds it into gold; konsol reads it. One definition, one path.
- Ad-hoc ODBC from Excel → ClickHouse's own PostgreSQL wire port (15432, loopback by default), on the internal network only.