Skip to content
Kumar Chandrachooda
Series

KC Star V8 — Intelligent Recalculation

In reading order.

  • 5 parts
  • ≈ 23 min total
  • 5 published
Part 1 09 Oct 2025 4 min read

Recalculate Only What Changed

Every version through V7 rebuilt all the measures when a dimension changed. KC Star V8 recalculates only the ones that actually depend on what moved - dependency analysis, selective recalculation, and claimed 60 to 80 percent less work. Kicking off the intelligent recalculation series.

Part 2 16 Nov 2025 5 min read

A Dependency Map Between Dimensions and Measures

KC Star V8's intelligence lives in one table - MeasureDimensionDependency - mapping which measures each dimension drives, with a DIRECT/INDIRECT/AGGREGATION type and an impact weight. Here is how the map is built, seeded and generated, and the priority formula that reads it.

Part 3 24 Dec 2025 4 min read

The Update That Recalculated Nothing

The most satisfying demonstration of KC Star V8 is an UPDATE that does no work. Change PaymentMethod, a dimension nothing depends on, and the selective trigger recalculates zero measures. Here is the trigger that pulls it off - and a tautological bug sitting right beside it.

Part 4 30 Jan 2026 5 min read

Migrating a Live Star from V7 to V8

Switching KC Star from always-rebuild to selective recalculation means dropping V7's triggers and installing V8's without losing data. Unlike V7's chaotic refactor, this migration ships a real verification function - and one landmine where dimension ids mean different things.

Part 5 05 Mar 2026 5 min read

When Selective Isn't — the V8 Batch Path

KC Star V8's row-level trigger is genuinely selective. Its batch path, despite the name, loops every calculation-affecting dimension and recomputes most measures anyway. An honest audit of where the selectivity holds, where it doesn't, and a measure that zeroes itself out.