Skip to main content
QUICK REVIEW

[Paper Review] Old Techniques for New Join Algorithms: A Case Study in RDF Processing

Christopher R. Aberger, Susan Tu|arXiv (Cornell University)|Feb 10, 2016
Advanced Database Systems and QueriesComputer Science14 references7 citations
TL;DR

This paper evaluates worst-case optimal join algorithms—originally theoretical constructs—for practical RDF query processing using the LUBM benchmark. It demonstrates that without additional optimizations, engines like EmptyHeaded and LogicBlox outperform specialized RDF engines by up to 6x on cyclic queries, and with three classic optimizations (index layout, selection pushdown, pipelining), EmptyHeaded achieves performance within an order of magnitude of top RDF engines on acyclic queries.

ABSTRACT

Recently there has been significant interest around designing specialized RDF engines, as traditional query processing mechanisms incur orders of magnitude performance gaps on many RDF workloads. At the same time researchers have released new worst-case optimal join algorithms which can be asymptotically better than the join algorithms in traditional engines. In this paper we apply worst-case optimal join algorithms to a standard RDF workload, the LUBM benchmark, for the first time. We do so using two worst-case optimal engines: (1) LogicBlox, a commercial database engine, and (2) EmptyHeaded, our prototype research engine with enhanced worst-case optimal join algorithms. We show that without any added optimizations both LogicBlox and EmptyHeaded outperform two state-of-the-art specialized RDF engines, RDF-3X and TripleBit, by up to 6x on cyclic join queries-the queries where traditional optimizers are suboptimal. On the remaining, less complex queries in the LUBM benchmark, we show that three classic query optimization techniques enable EmptyHeaded to compete with RDF engines, even when there is no asymptotic advantage to the worst-case optimal approach. We validate that our design has merit as EmptyHeaded outperforms MonetDB by three orders of magnitude and LogicBlox by two orders of magnitude, while remaining within an order of magnitude of RDF-3X and TripleBit.

Motivation & Objective

  • To assess whether worst-case optimal join algorithms can deliver practical performance gains in real-world RDF workloads.
  • To investigate whether these theoretically optimal algorithms can outperform or compete with state-of-the-art specialized RDF engines.
  • To evaluate the impact of classical database optimizations—index layout, selection pushdown, and pipelining—on worst-case optimal engines.
  • To determine if the asymptotic advantages of worst-case optimal joins translate into measurable performance improvements across diverse RDF query patterns.
  • To validate that a prototype worst-case optimal engine (EmptyHeaded) can outperform traditional and existing worst-case optimal engines while remaining competitive with specialized RDF systems.

Proposed method

  • The authors implement and evaluate EmptyHeaded, a prototype worst-case optimal engine using advanced join algorithms based on set intersections and multi-way join processing.
  • They compare EmptyHeaded and LogicBlox (a commercial worst-case optimal engine) against RDF-3X and TripleBit on the full LUBM benchmark with 133 million triples.
  • The study applies three classical optimizations: optimized index layouts for high-selectivity patterns, pushdown of selections to reduce intermediate result sizes, and pipelining of intermediate results across query plan nodes.
  • Performance is measured via wall-clock runtime over seven query executions, discarding the fastest and slowest runs to reduce variance.
  • The authors use a trie-based data structure to support covering indexes in EmptyHeaded, enabling efficient access for high-selectivity acyclic queries.
  • They analyze query execution times across cyclic and acyclic patterns, focusing on both asymptotic advantages and practical performance trade-offs.

Experimental results

Research questions

  • RQ1Can worst-case optimal join algorithms deliver measurable performance improvements over traditional and specialized RDF engines on real-world RDF workloads?
  • RQ2To what extent do classical database optimizations—such as index layout, selection pushdown, and pipelining—close the performance gap between worst-case optimal engines and specialized RDF systems?
  • RQ3Do worst-case optimal join algorithms provide practical benefits on cyclic queries, which are known to be asymptotically suboptimal in traditional engines?
  • RQ4How does the performance of a prototype worst-case optimal engine (EmptyHeaded) compare to both general-purpose and specialized RDF engines across diverse query types?
  • RQ5What are the performance bottlenecks in worst-case optimal engines, and can they be mitigated with targeted optimizations?

Key findings

  • On cyclic queries—specifically LUBM Q2 and Q9, which contain triangle patterns—EmptyHeaded and LogicBlox outperform RDF-3X and TripleBit by up to 6x, demonstrating the practical benefit of worst-case optimal join algorithms.
  • Without any added optimizations, LogicBlox and EmptyHeaded achieve up to 18x speedup over traditional relational engines and 4x over specialized RDF engines on cyclic queries.
  • With three classical optimizations (index layout, selection pushdown, pipelining), EmptyHeaded reduces runtime by over two orders of magnitude on high-selectivity acyclic queries, achieving performance within an order of magnitude of RDF-3X and TripleBit.
  • On simple acyclic queries with high selectivity (e.g., LUBM Q1, Q3, Q5, Q11, Q13, Q14), EmptyHeaded matches the performance of specialized engines due to its efficient trie-based covering indexes.
  • On complex acyclic queries (e.g., LUBM Q7, Q8, Q12), specialized engines still outperform EmptyHeaded due to advanced cost-based optimization, though optimizations can improve performance by up to 48x.
  • A performance slowdown in EmptyHeaded on LUBM Q8 is attributed to memory reallocations, which were found to be the primary bottleneck; removing them made performance comparable to RDF-3X, suggesting further optimization potential.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.