Output-sensitive Conjunctive Query Evaluation
Shaleen Deep, Hangdong Zhao, Austen Z. Fan, Paraschos Koutris

TL;DR
This paper introduces an output-sensitive algorithm for evaluating acyclic conjunctive queries with free variables, improving efficiency over traditional methods and matching lower bounds under certain conjectures.
Contribution
It generalizes the Yannakakis algorithm to be output-sensitive for a broader class of queries, with polynomial improvements and no reliance on fast matrix multiplication.
Findings
Improves running time of Yannakakis algorithm polynomially.
Matches lower bounds conditioned on $k$-clique conjecture.
Enhances evaluation of common queries like paths and stars.
Abstract
Join evaluation is one of the most fundamental operations performed by database systems and arguably the most well-studied problem in the Database community. A staggering number of join algorithms have been developed, and commercial database engines use finely tuned join heuristics that take into account many factors including the selectivity of predicates, memory, IO, etc. However, most of the results have catered to either full join queries or non-full join queries but with degree constraints (such as PK-FK relationships) that make joins \emph{easier} to evaluate. Further, most of the algorithms are also not output-sensitive. In this paper, we present a novel, output-sensitive algorithm for the evaluation of acyclic Conjunctive Queries (CQs) that contain arbitrary free variables. Our result is based on a novel generalization of the Yannakakis algorithm and shows that it is possible…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsNeural Networks and Applications
