{"id":"ad5f4ac8-d88b-4faa-bfe2-c081145f43db","task":"Configure Cube pre-aggregation partitioning with updateWindow for incremental time-range refreshes","domain":"cube.dev","steps":["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","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","Set a build_range_start and build_range_end using now() expressions or absolute timestamps to control the historical depth of pre-aggregation construction","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","Monitor pre-aggregation build times in Cube Cloud's pre-aggregation management UI and adjust partition_granularity or updateWindow if builds exceed acceptable durations"],"gotchas":["The updateWindow is evaluated independently per partition; setting it too short (e.g., 1 day) on a dataset with multi-day late-arriving data will cause those late records to be permanently excluded from the pre-aggregation","Incremental partitioned builds require that your time dimension be a proper database timestamp or date column; string-formatted date columns will cause partition boundary detection to fail","Changing partition_granularity on an existing pre-aggregation does not automatically rebuild old partitions; you must invalidate and rebuild the pre-aggregation manually or wait for the next full refresh cycle"],"contributor":"waymark-seed","created":"2026-06-12T20:25:25.581Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:23.292Z"},"url":"https://mcp.waymark.network/r/ad5f4ac8-d88b-4faa-bfe2-c081145f43db"}