[Paper Review] Workload-Driven Vertical Partitioning for Effective Query Processing over Raw Data
This paper proposes a workload-driven, two-stage heuristic for vertical partitioning of raw data to minimize query processing time under storage constraints. By modeling partial loading as binary vertical partitioning and using a linear mixed-integer program (MIP), the method optimizes which attributes to load, achieving near-optimal performance in fraction of the time required for exact MIP solving, with validation on real-world CSV, FITS, and JSON workloads.
Traditional databases are not equipped with the adequate functionality to handle the volume and variety of "Big Data". Strict schema definition and data loading are prerequisites even for the most primitive query session. Raw data processing has been proposed as a schema-on-demand alternative that provides instant access to the data. When loading is an option, it is driven exclusively by the current-running query, resulting in sub-optimal performance across a query workload. In this paper, we investigate the problem of workload-driven raw data processing with partial loading. We model loading as fully-replicated binary vertical partitioning. We provide a linear mixed integer programming optimization formulation that we prove to be NP-hard. We design a two-stage heuristic that comes within close range of the optimal solution in a fraction of the time. We extend the optimization formulation and the heuristic to pipelined raw data processing, scenario in which data access and extraction are executed concurrently. We provide three case-studies over real data formats that confirm the accuracy of the model when implemented in a state-of-the-art pipelined operator for raw data processing.
Motivation & Objective
- To address the inefficiency of traditional schema-driven data loading in big data workloads, where unused attributes are replicated and stored at great cost.
- To model partial loading of raw data as binary vertical partitioning with full replication, enabling optimization of which attributes to load.
- To design a scalable, two-stage heuristic that approximates optimal partitioning with significantly reduced computation time.
- To extend the optimization and heuristic to pipelined raw data processing, where data access and extraction occur concurrently.
- To validate the model's accuracy and the heuristic's performance on real-world data formats (CSV, FITS, JSON) using a state-of-the-art pipelined operator.
Proposed method
- Formulate the partial loading problem as a linear mixed-integer program (MIP), proving it is NP-hard and inapproximable.
- Design a two-stage heuristic: first, maximize query coverage by selecting attributes that satisfy the most queries; second, prioritize attributes by usage frequency to refine the partitioning.
- Adapt the MIP formulation and heuristic for pipelined processing, where data are accessed and extracted in parallel, reducing I/O bottlenecks.
- Implement the approach in a pipelined operator for raw data processing, enabling concurrent data access and attribute extraction.
- Use real-world workloads (e.g., 1M queries on SDSS catalog) to evaluate performance and accuracy against ground-truth execution.
- Leverage existing RDBMS features such as BLOB storage and dynamic schema promotion, while minimizing redundant data replication.
Experimental results
Research questions
- RQ1Can workload-driven vertical partitioning of raw data significantly reduce query processing time while respecting storage budget constraints?
- RQ2How can partial loading be modeled as a binary vertical partitioning problem with full replication to enable optimization?
- RQ3Can a two-stage heuristic achieve near-optimal performance in a fraction of the time required by exact MIP solving?
- RQ4How does the proposed model perform in a pipelined processing scenario where data access and extraction are concurrent?
- RQ5To what extent does the MIP formulation accurately reflect the execution characteristics of a real pipelined raw data processing operator?
Key findings
- The proposed two-stage heuristic achieves query execution times within close range of the optimal MIP solution, but in a fraction of the time, making it practical for real-world workloads.
- The MIP formulation is proven to be NP-hard and inapproximable, justifying the use of heuristics for scalable deployment.
- In a case study on the SDSS catalog, only 74 out of 509 attributes were used in queries, yet full replication led to massive storage waste—highlighting the need for workload-aware loading.
- The heuristic outperforms existing vertical partitioning algorithms in terms of query processing efficiency and scalability on real data formats including CSV, FITS, and JSON.
- The extended formulation for pipelined processing accurately models concurrent data access and extraction, improving I/O efficiency in real-world scenarios.
- Validation using a state-of-the-art pipelined operator confirms that the model captures low-level execution details accurately, supporting its use in production systems.
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.