BRAMANTHYO ANDRIAN
← All work

A revenue datamart rebuilt on Apache Iceberg: 55% less compute, minutes instead of hours

A certified, incrementally loaded revenue datamart on Iceberg: 55% less compute on the dev profile, and refresh cycles from about 2.5 hours to 8–12 minutes.

Data architect and ETL development lead

−55%
compute on the development profile (3,600 → 1,630 vCore-hours a month)
8–12 min
per refresh cycle on pre-production, against about 2.5 hours before
1 team
needed per new business column, instead of two

Context

Five teams, one number, five answers. One revenue source fed five derived tables on five schedules, two separate merge jobs used different logic and cut-offs, and the business rebuilt the same joins by hand. Adding a business column meant editing seven revenue scripts and then two more on the business side, a median of 13 days. Yesterday’s data was ready only in the early evening, and refreshes took tables away from users.

Role

Data architect and development lead: layer placement, the staging-to-final flow, the Iceberg layout and the load rules. The business logic and the source-to-target mapping belong to the reporting team and are validated by data quality, who own those definitions. I ran the weekly sync across reporting, data quality, data sourcing, engineering and modelling.

Approach

  • A five-layer model: raw, foundation, a certified and owned predefined datamart, custom aggregations, and business analytics. The datamart is the default starting point for every team. Delivery is phased: build the new dataset, then consolidate the two merge jobs, then retire overlapping datasets.
  • Iceberg-native loading. Hidden partitioning, incremental loads every 2 hours with a 2-hour look-back, and MERGE and DELETE instead of full rewrites. Readers keep querying while data is written, schema changes are metadata-only, and a source problem can be undone by rolling back to a snapshot.
  • Prove parity before cutover. Source-versus-target reconciliation queries compare every revenue stream per day.

Result

On the development profile, compute fell 55% (3,600 to 1,630 vCore-hours a month). On pre-production a cycle takes 8–12 minutes (20 at most) against about 2.5 hours, data freshness moves from next day to 2–4 hours, and one team, not two, handles a new column. As of late October 2026 the baseline is in a pre-parallel run on pre-production, with cutover planned for December 2026.

What I’d do differently

I would start the source-versus-target reconciliation at design time, not once the pipeline is built, so parity is proven continuously instead of at the end.