![]() |
VOOZH | about |
A Galaxy Schema, also known as a Fact Constellation Schema, uses two or more fact tables that share common dimension tables. This setup allows multiple business processes like sales and inventory to be modeled together using shared dimensions such as Time, Product, and Location. This schema is ideal for large, complex data warehouses where multiple subject areas need to be analyzed together. It offers greater flexibility and scalability than star or snowflake schemas.
Note: It is called a Galaxy because it looks like a group of star schemas linked together similar to stars forming a constellation.
In the example below, the data warehouse includes two fact tables: SALES and INVENTORY - that share common dimensions like Product, Time, and Location.
Note: In the aabove diagram:
- PK = Primary Key
- FK = Foreign Key
Both fact tables share the following dimension tables:
Note: The Supplier Dimension is linked only to the Inventory fact table because supplier information is relevant to stock management and not to sales transactions.
This structure enables comprehensive cross-domain reporting such as analyzing sales trends in relation to inventory levels or customer preferences.
Advantages | Disadvantages |
|---|---|
Support for Multiple Business Processes | More Complex Design |
Dimension Reuse | Complex Queries |
Efficient Storage | ETL Complexity |
Scalable Architecture | Data Redundancy Risk |