Size bounds and query plans for relational joins
Not on the map. Why?
Abstract (arXiv)
Relational joins are at the core of relational algebra, which in turn is the core of the standard database query language SQL. As their evaluation is expensive and very often dominated by the output size, it is an important task for database query optimisers to compute estimates on the size of joins and to find good execution plans for sequences of joins. We study these problems from a theoretical perspective, both in the worst-case model, and in an average-case model where the database is chosen according to a known probability distribution. In the former case, our first key observation is that the worst-case size of a query is characterised by the fractional edge cover number of its underlying hypergraph, a combinatorial parameter previously known to provide an upper bound. We complete the picture by proving a matching lower bound, and by showing that there exist queries for which the join-project plan suggested by the fractional edge cover approach may be substantially better than any join plan that does not use intermediate projections. On the other hand, we show that in the average-case model, every join-project plan can be turned into a plan containing no projections in such a way that the expected time to evaluate the plan increases only by a constant factor independent of the size of the database. Not surprisingly, the key combinatorial parameter in this context is the maximum density of the underlying hypergraph. We show how to make effective use of this parameter to eliminate the projections.
Key facts. Cited by 10 papers in the map (data through 14 Oct 2026). First posted on arXiv 10 Nov 2017.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 1; 2022: 4; 2023: 3; 2024: 1; 2025: 0; 2026: 1.
10 papers.
- 2024ClavaDDPM: Multi-relational Data Synthesis with Cluster-guided Diffusion Modelscited by 28
- 2022Triangle and Four Cycle Counting with Predictions in Graph Streamscited by 20
- 2022FactorJoin: A New Cardinality Estimation Framework for Join Queriescited by 13
- 2023Knowledge Graphs Queryingcited by 5
- 2022Sub-quadratic Algorithms for Kernel Matrices via Kernel Density Estimationcited by 2
- 2022Coresets for Relational Data and The Applicationscited by 1
- 2023JoinGym: An Efficient Query Optimization Environment for Reinforcement Learningcited by 1
- 2021Relational Boosted Regression Treescited by 0
- 2023Counting Solutions to Conjunctive Queries: Structural and Hybrid Tractabilitycited by 0
- 2026Lower Bounds for the Algorithmic Complexity of Learned Indexescited by 0
- 2026Lower Bounds for the Algorithmic Complexity of Learned Indexes10 Jan 2026
- 2024ClavaDDPM: Multi-relational Data Synthesis with Cluster-guided Diffusion Models28 May 2024
- 2023Counting Solutions to Conjunctive Queries: Structural and Hybrid Tractability24 Nov 2023
- 2023JoinGym: An Efficient Query Optimization Environment for Reinforcement Learning21 Jul 2023
- 2023Knowledge Graphs Querying23 May 2023
- 2022FactorJoin: A New Cardinality Estimation Framework for Join Queries11 Dec 2022
- 2022Sub-quadratic Algorithms for Kernel Matrices via Kernel Density Estimation1 Dec 2022
- 2022Coresets for Relational Data and The Applications9 Oct 2022
- 2022Triangle and Four Cycle Counting with Predictions in Graph Streams17 Mar 2022
- 2021Relational Boosted Regression Trees25 Jul 2021