DSB: A Decision Support Benchmark for Workload-Driven and Traditional Database Systems

Bailu Ding, Surajit Chaudhuri, Johannes Gehrke, Vivek R. NarasayyaPVLDB 2021 · DOI

TL;DR

This paper introduces DSB, a new benchmark designed to evaluate modern decision support database systems, particularly those that are "workload-driven" (e.g., using ML for optimization). DSB extends the widely-used TPC-DS benchmark by incorporating more complex data distributions, diverse query patterns, and dynamic workloads, addressing limitations of TPC-DS in evaluating these newer systems.

What Problem Does This Paper Address?

Traditional decision support benchmarks like TPC-DS, while valuable, were designed for a different era of database systems. Modern databases are increasingly "workload-driven," meaning they adapt their behavior based on observed query patterns, often using machine learning. These systems have different performance characteristics and require more sophisticated evaluation than traditional benchmarks can provide. Specifically, TPC-DS has limitations in:

  • Data Distribution: It assumes simpler data distributions and correlations than what's found in real-world, complex datasets.
  • Query Complexity: Its query templates lack the variety of join patterns and fine-grained data slicing seen in modern analytical workloads.
  • Dynamic Workloads: It generates static workloads, failing to test how systems adapt to changing query patterns over time.
  • Evaluation Metrics: It doesn't adequately guide the evaluation of workload-driven systems, which may have unique overheads (e.g., for training ML models) and performance dimensions.

DSB aims to bridge this gap by providing a benchmark that better reflects contemporary decision support workloads and evaluation needs for both traditional and workload-driven database systems.

Methods

DSB builds upon the TPC-DS schema but introduces several key enhancements:

  • Complex Data Distribution: DSB incorporates more sophisticated data distributions, including skewed distributions for individual columns and correlated distributions across multiple columns within and across tables. This is achieved through techniques like exponential distributions and bucketization.
  • Enhanced Query Templates: New query templates are introduced to cover more complex join patterns, such as many-to-many joins, non-equi joins, and cyclic join graphs, which are common in modern analytical queries.
  • Fine-Grained Data Slicing: Query templates are augmented with additional predicate filters to enable more granular data slicing, increasing the parameter space and the number of distinct query instances.
  • Dynamic Workloads: DSB supports configurable and dynamic workloads by allowing for sequences of workload distribution configurations. This enables testing how systems adapt to changing parameter distributions and query template popularity over time.
  • Evaluation Methodology: The paper proposes guidelines for evaluating both traditional and workload-driven systems, including specific metrics and reporting requirements to capture the trade-offs and overheads of ML-enhanced systems.

Datasets

The paper uses the TPC-DS schema as its foundation. The DSB benchmark itself is a new benchmark derived from TPC-DS, with enhanced data generation and query templates. The authors also mention using Microsoft SQL Server 2019 and Postgres 13 for evaluation.

Key Insights and Ideas

  • Real-world data is complex: Modern decision support data is far more skewed and correlated than assumed by older benchmarks like TPC-DS, and this complexity significantly impacts query optimization.
  • Workload-driven systems need new benchmarks: Static benchmarks like TPC-DS are insufficient for evaluating the adaptability and performance of modern ML-enhanced database systems that learn and adapt to workloads.
  • Distinct query instances matter: The ability to generate a large number of distinct query instances is crucial for training and testing workload-driven systems, and DSB significantly improves upon TPC-DS in this regard.
  • Cardinality estimation is harder with complex data: The increased skews and correlations in DSB lead to substantially higher cardinality misestimation errors compared to TPC-DS, highlighting the challenge for optimizers.
  • There's significant room for improvement: Even mature commercial database systems show considerable performance gains when provided with better cardinality estimates or when their query optimization is enhanced, indicating ongoing potential for innovation.

Key Results

  • Reduced Duplicate Queries: DSB achieves a significantly lower duplicate ratio (e.g., 8% with 1000 instances per template) compared to TPC-DS (63%), enabling more effective training and testing.
  • Increased Query Optimization Complexity: DSB queries lead to 2.7x to 2.9x longer query optimization times on Microsoft SQL Server 2019 and Postgres 13, respectively, compared to TPC-DS.
  • More Distinct Query Plans: DSB query templates result in an average of 7.9 distinct query plans per template on SQL Server 2019, compared to 1.5 for TPC-DS, indicating greater optimization challenge.
  • Higher Cardinality Misestimations: DSB exhibits significantly higher q-errors in cardinality estimation (up to 4.5x median, 29.0x for 90th percentile) compared to TPC-DS, especially when joining multiple tables.
  • Performance Gains with ML: In a case study, an ML-enhanced system (MLSame) achieved a 7% faster average query elapsed time than a traditional system (Original), demonstrating the potential of workload-driven approaches.
  • Room for Plan Quality Improvement: Even with optimal cardinality estimates, there's still significant room for improvement, with an average speedup of 31% observed for optimal plans over original plans.

Limitations and Future Work

  • Reproducibility of ML Systems: The paper notes that the case study's ML-enhanced systems might not represent the absolute best implementations of the techniques, and the focus was on demonstrating the evaluation process.
  • Complexity of Sample Creation: For ML-enhanced systems, creating training samples from complex join results (especially many-to-many joins) can be computationally intensive and may time out, leading to unsupported expressions.
  • Future Work: The authors suggest that the DSB benchmark and its evaluation methodology can be extended to other benchmarks. They also highlight the ongoing need for innovations in workload-driven database systems that balance performance with low maintenance and adaptation overhead. The paper also implicitly points to the need for better cardinality estimation techniques for complex data distributions.

Summary updated

BibTeX
@article{ding2021dsb,
  author = {Bailu Ding and Surajit Chaudhuri and Johannes Gehrke and Vivek R. Narasayya},
  title = {{DSB: A Decision Support Benchmark for Workload-Driven and Traditional Database Systems}},
  journal = {Proc. VLDB Endow.},
  year = {2021},
  doi = {10.14778/3484224.3484234},
}
Figure