← Back to Glossary

Fact constellation schema

A fact constellation schema (also called a galaxy schema) is a dimensional model with multiple fact tables that share one or more common dimension tables.

Overview

A fact constellation — sometimes called a galaxy schema — extends the star schema to the reality that most real warehouses need more than one fact table. Instead of one star, you have several fact tables, each with its own set of dimensions, some of which are shared (conformed) across fact tables. Visualized, multiple stars overlap where they share dimension tables, resembling a constellation.

For example, a retail warehouse might have fact_sales and fact_inventory, both sharing dim_date, dim_product, and dim_store, while each also has dimensions unique to its own process (fact_sales might have dim_customer; fact_inventory might have dim_warehouse_location).

Related terms

FAQS

A star schema has a single fact table at its center. A fact constellation (galaxy schema) has multiple fact tables, which share one or more common dimension tables between them.