-
Book Overview & Buying
-
Table Of Contents
AI-Ready PostgreSQL 18
By :
In this chapter, we reviewed three approaches to modeling data for analytics: the star schema, the data vault, and ROLAP, and discussed their strengths, weaknesses, and ideal use cases.
Data vaults are well-suited to integrating data from multiple systems and handling source-system schema evolution, but they are pretty complex. The ROLAP approach is very simplistic but suitable only for small, ad hoc reporting use cases. The star schema, often built on data vaults, is the most popular analytics model for relational databases. The star schema provides a solid foundation for PostgreSQL's analytics capabilities: views, materialized views, groups, grouping sets, rollups, cubes, window functions, and common table expressions.
In the following chapters, we will look at how data can be moved from transactional systems to analytics systems using an extract-and-load process, and how normalized data from the transactional system can be transformed into a denormalized, analytics...