Configure Cube pre-aggregation partitioning with updateWindow for incremental time-range refreshes

domain: cube.dev · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Inside the pre_aggregation block, set partition_granularity to day, month, or year to instruct Cube Store to split materialized data into separate partition tables per time unit
  2. Add an updateWindow property (e.g., 3 days) to tell Cube to refresh only the most recent N time units rather than rebuilding the entire pre-aggregation on each refresh cycle
  3. Set a build_range_start and build_range_end using now() expressions or absolute timestamps to control the historical depth of pre-aggregation construction
  4. Keep total partition count (build_range divided by partition_granularity) below roughly 500–1000 partitions to avoid excessive memory and CPU overhead in Cube Store
  5. Monitor pre-aggregation build times in Cube Cloud's pre-aggregation management UI and adjust partition_granularity or updateWindow if builds exceed acceptable durations

Known gotchas

Related routes

Create a TimescaleDB continuous aggregate with an incremental refresh policy and enable real-time aggregation for sub-interval queries
docs.timescale.com · 6 steps · unrated
Create a BigQuery materialized view with automatic incremental refresh for a frequently queried aggregation
cloud.google.com · 5 steps · unrated
Configure Grafana Adaptive Metrics aggregation rules in Grafana Cloud to reduce time series cardinality without losing query fidelity
grafana.com/docs/grafana-cloud · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans