Skip to content
Open menu
All work

International fashion retail

20 billion rows of price history, integrated without breaking the budget

Eight terabytes of historical product pricing, moved into the warehouse with integrity intact and query cost under control.

8TB · 150+ stores plus e-commerce

Context

A clothing retailer operating more than 150 physical stores alongside a substantial e-commerce channel had accumulated years of product pricing history. The data existed, but it sat outside the warehouse in a form nobody could query, which meant pricing decisions were being made without reference to what had actually happened before.

The problem

Roughly twenty billion rows — around eight terabytes — of nested JSON pricing data. Loading it naively into the warehouse would have been slow, expensive to store and ruinous to query. The volume also made data integrity a genuine risk: a silent truncation or type coercion at that scale is very hard to detect after the fact and very costly to discover late.

What we did

  • 01Preprocessed the raw JSON on a distributed processing cluster, doing the heavy reshaping against distributed storage before anything reached the warehouse.
  • 02Designed a medallion architecture in the warehouse so raw, cleaned and business-ready layers stayed separated and independently reprocessable.
  • 03Tuned partitioning and clustering against real query patterns rather than defaults, so the common access paths scan a fraction of the table.
  • 04Built integrity checks into the processing stage — row counts, type assertions and reconciliation against source — so any loss surfaced during the run, not months later.
  • 05Introduced a managed transformation framework to control movement and dependencies between datasets as the graph grew.

Outcome

  • Full historical price data queryable in the warehouse, with integrity verified through every processing stage.
  • Ongoing transformation volume of 30TB per day running on the same architecture.
  • Query cost held down by partition and cluster design rather than by restricting access to the data.

More work

Not sure where the problem is?

That is usually the first thing worth fixing. A short call costs nothing, and you will leave it with at least one concrete thing to try.

We reply to every enquiry within one working day.