[Paper Review] A Review of Star Schema Benchmark
This paper proposes the Star Schema Benchmark (SSB) as a superior alternative to TPC-H for evaluating decision support systems, arguing that SSB's star schema design—aligned with Ralph Kimball's data warehouse principles—enables more realistic and performant testing of modern DBMS features like columnar compression and optimized query execution. The study demonstrates that SSB reduces query execution times significantly across MySQL, PostgreSQL, and SQLite, especially when combined with indexing, and highlights the importance of cost models that account for CPU overhead in column-oriented systems.
This paper examines the Star Schema Benchmark, an alternative to the flawed TPC-H decision support system and presents reasons why this benchmark should be adopted over the industry standard for decision support systems.
Motivation & Objective
- To address the limitations of TPC-H, which uses a 3NF schema and restricts indexing and partitioning, by proposing a more realistic benchmark for decision support systems.
- To evaluate how well modern DBMSs handle star schema queries, particularly with respect to compression and query optimization.
- To demonstrate that SSB provides a fairer and more representative benchmark than TPC-H by aligning with industry-standard data warehouse design principles.
- To investigate the performance impact of columnar compression and indexing on query execution in star schema environments.
- To advocate for the adoption of SSB as the preferred benchmark for evaluating DBMS performance in data warehouse workloads.
Proposed method
- Transformed the TPC-H schema into a normalized star schema by merging LINEITEM and ORDERS into a single fact table (LINEORDER), removing denormalized or redundant tables like PARTSUPP.
- Removed non-aggregatable attributes (e.g., comments, shipping instructions) from fact tables to align with data warehouse best practices.
- Introduced a dedicated DATE dimension table and restructured the schema to support roll-up hierarchies and star-join patterns.
- Generated data using SSB-DBGEN with a scale factor, ensuring proportional growth of tables while applying logarithmic scaling to PARTS.
- Executed queries using SSB-QGEN and mapped TPC-H queries to equivalent SSB query flights to enable direct performance comparison.
- Measured execution times on three DBMS (MySQL, PostgreSQL, SQLite) under both 'out of the box' and indexed configurations to assess performance differences.
Experimental results
Research questions
- RQ1How does the performance of TPC-H compare to SSB in terms of query execution time across multiple DBMS?
- RQ2To what extent does the star schema design of SSB improve query optimization and compression efficiency compared to TPC-H’s 3NF schema?
- RQ3How do indexing strategies affect query performance differences between TPC-H and SSB?
- RQ4What role does columnar compression play in reducing I/O and improving execution time in star schema workloads?
- RQ5How do cost-based query optimizers perform on SSB versus TPC-H, particularly when handling compressed data and complex predicates?
Key findings
- SSB reduced average query execution time across all DBMS (MySQL, PostgreSQL, SQLite) by a significant margin compared to TPC-H, even without indexing.
- After indexing, MySQL emerged as the fastest DBMS for SSB workloads, indicating strong performance with proper index utilization.
- The performance ratio between DBMSs remained consistent between TPC-H and SSB, suggesting that SSB preserves relative performance rankings while improving absolute performance.
- Columnar compression, especially with RLE and null-suppression, significantly improved performance by reducing I/O and enabling direct operations on compressed data.
- The study confirmed that CPU cost becomes dominant in column-oriented systems, necessitating cost models that account for decompression overhead.
- SSB’s star schema design allows for better optimization of star-joins and reduces the need for complex subqueries or self-joins, leading to simpler and faster execution plans.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.