DeepSea: Progressive Workload-Aware Partitioning of Materialized Views in Scalable Data Analytics

Jiang Du, Renée J. Miller, Boris Glavic, Wei Tan

Introduction

In large-scale data analytics environments like Hadoop or Hive, queries often scan massive datasets, leading to significant latency. While materialized views (storing intermediate results) and horizontal partitioning (splitting data into chunks) are common solutions, combining them effectively is challenging. Static partitioning requires prior knowledge of workloads, which are often dynamic and non-uniform in practice.

DeepSea addresses this by treating partitioning as an evolving, online process. It adaptively manages materialized views by partitioning them based on real-time query patterns, achieving up to an order of magnitude performance improvement over traditional static strategies.

Methods and Innovations

DeepSea is built on Apache Hive and introduces several core innovations to handle evolving workloads:

  • Progressive Partitioning: Instead of a one-time setup, DeepSea refines partition boundaries as queries arrive. If a query hits a specific range within a large fragment, the system considers splitting that fragment to optimize future access.
  • Overlapping Fragments: To avoid the high I/O cost of reading and re-writing massive files to maintain perfectly disjoint sets, DeepSea allows new, smaller fragments to overlap existing ones. This "lazy" refinement saves significant time during fragment creation.
  • Probabilistic Cost-Benefit Model: The system tracks fragment value using Maximum Likelihood Estimation (MLE) to model access patterns. It exploits spatial correlation—the idea that if a specific range is hit, its "neighbors" are likely to be hit soon—to guide eviction and materialization.
Comparison of traditional Horizontal Partitioning versus DeepSea's Overlapping Partitioning strategy.

Evaluation and Key Insights

The researchers evaluated DeepSea using real-world query logs from the Sloan Digital Sky Survey (SDSS) and the BigBench industry benchmark (scaled to 500GB).

Analysis of the SDSS workload confirmed that data access is highly correlated and shifts over time. DeepSea's progressive approach allows it to "catch up" to these shifts quickly. While repartitioning incurs a small initial cost, this is typically recouped within just a few queries.

The dynamic nature of query selection ranges in the SDSS workload, illustrating the need for adaptive partitioning.

Key Results

  • Efficiency: In a 500GB workload, DeepSea required only 64.2% of the time taken by non-partitioned materialization strategies.
  • Storage Constraints: When storage is limited (e.g., 10% of base table size), DeepSea is 20-30% faster than state-of-the-art systems like Nectar because it intelligently retains only the most valuable fragments.
  • Benefit Decay: By using a decay function for view benefits, the system naturally evicts old, useless views as user interests shift (e.g., moving from seasonal sales analysis to new trends).

Limitations and Future Work

DeepSea currently focuses on query-heavy workloads and single-attribute partitioning. Future research will explore handling frequent streaming updates to underlying data and extending the model to multi-dimensional partitioning (e.g., partitioning by both time and region). Additionally, deeper integration into query optimizers could allow the system to proactively choose query plans that generate high-value intermediate results for long-term benefit.

Summary updated

BibTeX
@inproceedings{du2017deepsea,
  author = {Jiang Du and Renée J. Miller and Boris Glavic and Wei Tan},
  title = {{DeepSea: Progressive Workload-Aware Partitioning of Materialized Views in Scalable Data Analytics}},
  booktitle = {EDBT},
  year = {2017},
  doi = {10.5441/002/edbt.2017.19},
}
Figure