Ranked Enumeration of Join Queries with Projections
Shaleen Deep, Xiao Hu, Paraschos Koutris

TL;DR
This paper introduces efficient algorithms for ranked enumeration of join queries with projections, achieving near-linear delay after linear preprocessing for acyclic queries, with extensions to cyclic queries and practical performance improvements.
Contribution
It presents the first algorithms for ranked enumeration of join queries with projections, including near-linear delay for acyclic queries and tradeoffs for star queries, extending to cyclic and union queries.
Findings
Algorithms achieve near-linear delay for acyclic queries with sum and lex order.
Practical algorithms outperform existing methods by up to three orders of magnitude.
Extensions to cyclic and union queries broaden applicability.
Abstract
Join query evaluation with ordering is a fundamental data processing task in relational database management systems. SQL and custom graph query languages such as Cypher offer this functionality by allowing users to specify the order via the ORDER BY clause. In many scenarios, the users also want to see the first results quickly (expressed by the LIMIT clause), but the value of is not predetermined as user queries are arriving in an online fashion. Recent work has made considerable progress in identifying optimal algorithms for ranked enumeration of join queries that do not contain any projections. In this paper, we initiate the study of the problem of enumerating results in ranked order for queries with projections. Our main result shows that for any acyclic query, it is possible to obtain a near-linear (in the size of the database) delay algorithm after only a linear time…
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.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsData Management and Algorithms · Advanced Database Systems and Queries · Constraint Satisfaction and Optimization
