[Paper Review] Optimizing Federated Queries Based on the Physical Design of a Data Lake
This paper proposes source-specific heuristics for optimizing federated SPARQL queries in Semantic Data Lakes by leveraging the physical design of underlying data sources, particularly relational databases. By pushing down joins and filters using index awareness and query engine-level optimization, the approach reduces execution time compared to state-of-the-art engines that ignore physical schema details.
The optimization of query execution plans is known to be crucial for reducing the query execution time. In particular, query optimization has been studied thoroughly for relational databases over the past decades. Recently, the Resource Description Framework (RDF) became popular for publishing data on the Web. As a consequence, federations composed of different data models like RDF and relational databases evolved. One type of these federations are Semantic Data Lakes where every data source is kept in its original data model and semantically annotated with ontologies or controlled vocabularies. However, state-of-the-art query engines for federated query processing over Semantic Data Lakes often rely on optimization techniques tailored for RDF. In this paper, we present query optimization techniques guided by heuristics that take the physical design of a Data Lake into account. The heuristics are implemented on top of Ontario, a SPARQL query engine for Semantic Data Lakes. Using source-specific heuristics, the query engine is able to generate more efficient query execution plans by exploiting the knowledge about indexes and normalization in relational databases. We show that heuristics which take the physical design of the Data Lake into account are able to speed up query processing.
Motivation & Objective
- Address the challenge of inefficient federated query processing in Semantic Data Lakes due to lack of physical design awareness in existing query engines.
- Improve query execution efficiency by incorporating source-specific knowledge of relational database schemas, including indexing and normalization.
- Demonstrate that considering physical design—especially indexes—leads to more efficient query execution plans than generic or RDF-optimized approaches.
- Extend the Ontario SPARQL query engine with heuristics that generate better query execution plans by pushing operations to data sources when possible.
- Investigate the impact of physical design on query performance in federated environments, particularly for star-shaped sub-queries over normalized relational tables.
Proposed method
- Integrate source-specific heuristics into the Ontario SPARQL query engine, which natively supports federated query processing over heterogeneous data models.
- Apply Heuristic 1 (Join Pushdown): Combine star-shaped sub-queries over the same relational database endpoint if the join attribute is indexed, reducing cross-source communication.
- Apply Heuristic 2 (Filter Pushdown): Push filter operations to the data source if the filter attribute is indexed; otherwise, evaluate at the query engine level.
- Use RDF Molecule Templates (RDF-MTs) to model entity classes and guide sub-query decomposition into star-shaped patterns for efficient processing.
- Leverage physical operators from ANAPSID and cost-based estimation to improve plan generation and reduce intermediate result sizes.
- Translate SPARQL sub-queries into native SQL for relational sources, preserving optimization opportunities based on schema statistics and indexing.
Experimental results
Research questions
- RQ1Can query optimization in Semantic Data Lakes be improved by incorporating knowledge of physical database design, such as indexing and normalization?
- RQ2How does join pushdown based on indexed attributes affect query execution time in federated SPARQL queries over relational and RDF sources?
- RQ3To what extent do filter pushdown strategies improve performance when the filter attribute is indexed versus not indexed?
- RQ4How does the physical design of relational tables (e.g., 3NF normalization, primary key usage) influence the efficiency of federated query execution plans?
- RQ5What is the performance impact of using source-specific heuristics compared to generic or RDF-optimized query optimization in a heterogeneous data lake environment?
Key findings
- The proposed heuristics, which consider the physical design of relational databases, lead to more efficient query execution plans than state-of-the-art engines that ignore such details.
- Join pushdown is effective when the join attribute is indexed, allowing the query engine to combine sub-queries at the data source level and reduce the number of operations performed at the engine level.
- Filter pushdown is only beneficial when the filter attribute is indexed; otherwise, filtering at the query engine level is more efficient due to larger intermediate results.
- The use of star-shaped sub-queries over normalized relational tables with primary keys as subjects improves query optimization potential, as shown by prior work cited in the paper.
- Query performance is influenced not only by physical design and network conditions but also by the implementation of the query engine and wrappers, indicating that optimization is context-dependent.
- Even in early-stage implementation, the heuristics demonstrate measurable performance improvements, suggesting that physical design awareness is a viable path for future optimization in data lakes.
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.