Bookmarks

Data mart

A subset of a data warehouse put together for the needs of one department or business area — sales, finance, marketing.

Also: datamart, departmental data mart

checked 18 Nov

All terms

A department rarely needs all of a company’s data: sales needs orders and revenue, finance needs payments and budgets. A data mart assembles such a narrow set in advance: the data is already cleaned, consolidated and shaped for routine reports, so reports are quicker to build and access is easier to control.

What a data mart is made of

Most often a data mart is laid out as a dimensional model: at the centre sits a fact table with numbers (order amount, quantity, discount), around it dimensions with descriptions (date, store, product, customer). This layout is a star schema: queries stay simple, and the department’s analyst does not have to work through every table in the warehouse.

PartExample in a sales mart
Factsorder line: amount, quantity, discount
Dimensionsday calendar, stores, products, customer segments
Granularityone row per receipt line per day
Prebuilt aggregatesrevenue by day, store and product category

Dependent and independent data marts

  • Dependent — carved out of the enterprise warehouse: the data is already consolidated, the mart is quick to build and does not drift out of step with its neighbours
  • Independent — put together straight from the sources, without a warehouse: quicker and cheaper to stand up, but every mart applies its own cleaning rules, so the figures diverge between departments
  • Hybrid — a warehouse core plus local data that the warehouse does not hold

Dependent marts keep the warehouse the single source of truth while remaining curated slices of it. Ralph Kimball’s approach runs bottom-up: first data marts per business process, tied together by shared conformed dimensions — lookup tables identical across every mart — and the warehouse gradually takes shape out of them. Kimball laid out the dimensional model in the 1996 book “The Data Warehouse Toolkit”.

When a data mart is worth it

When a department has stable reports, a vocabulary of metrics of its own and a need to move faster than the warehouse’s shared rules allow: the department runs the mart itself — the loads, the changes, the access. If everyone asks the same questions and the company needs the data as a whole, one warehouse without any slicing is enough.

Sources

the term is written from these pages

Verified 18 Nov

Not to be confused with

what it is mixed up with and how it differs

  • DWHdata warehouse

    A data warehouse is a shared, cleaned store of all the company’s data; a data mart is a slice of it for one department or process.

  • data lake

    A data lake keeps raw data of every type in reserve, ahead of any task; a data mart is a ready, cleaned set for specific reports.

  • OLAPAnalytical processing

    OLAP is a way of analysing multidimensional cubes; a data mart is a data set on which the cubes and reports are built.