Skip to main content

Glossary

What is a star schema?

Last updated Monday, Aug 3, 2026

A star schema is a data model made of one central fact table, holding the measurable events, an order, a page view, a transaction, joined to several dimension tables that describe the who, what, and when around each fact. It's called a star schema because a diagram of the fact table with its dimensions branching out looks like a star.

How it works

The fact table holds numeric measures (order amount, quantity, duration) and foreign keys pointing to dimension tables. Dimension tables hold the descriptive attributes: a dim_customer table with name and region, a dim_date table with day, month, and fiscal quarter. Because dimensions are shared across many facts, a BI tool can join a handful of tables instead of many normalized ones, and each dimension's attributes only need to be defined once.

Why it matters

Dashboards run the same handful of query shapes over and over: filter by date range, group by region, sum a measure. A star schema is built for exactly that access pattern, so those queries stay fast and the joins stay simple, instead of forcing a BI tool to traverse a deeply normalized schema on every request.

How OptimaFlo builds this

The Ready (gold) layer is where OptimaFlo builds business metrics on top of Clean, and that includes star schema and denormalized models sized for BI queries. Updates run incrementally, so a Ready table refreshes with new or changed data instead of rebuilding from scratch on every run. The SQL behind these models is generated and version controlled the same way as the rest of the pipeline, reviewed before it runs.

Related terms

Frequently asked questions

A normalized schema splits data into many small, linked tables to avoid duplicating values, which is good for transactional writes. A star schema denormalizes on purpose: dimension tables carry repeated descriptive values so a BI query can join a fact table to a handful of dimensions instead of a dozen normalized tables.

No. Clean (silver) is where source data gets validated, joined, and de-duplicated. A star schema is what the Ready (gold) layer builds on top of that already-clean data, shaped for dashboards and reports rather than for further cleaning.

You could, but every query would need to repeat filtering and labeling logic that a dimension table centralizes once. A dimension table for date, for example, means every fact table query can join to get quarter, fiscal year, or day-of-week without recalculating it each time.

Browse every term or see the AI data team roles.

Staffed, not self-serve

See AI teammates work on your own data.

Now in early beta. One flat plan, no per-query tax. Runs in your cloud, and your tables stay in your account.