Safe Subjoins in Acyclic Joins

08/20/2022
by   Foto N. Afrati, et al.
0

It is expensive to compute joins, often due to large intermediate relations. For acyclic joins, monotone join expressions are guaranteed to produce intermediate relations not larger than the size of the output of the join when it is computed on a fully reduced database. Any subexpression of an acyclic join does not offer this guarantee, as it is easy to prove. In this paper, we consider joins with projections too and we ask the question whether we can characterize join subexpressions that produce, on every fully reduced database, an output without dangling tuples (which translates, in the case of joins without projections, to an output of size not larger than the size of the output of the join). We call such a subexpression a safe subjoin. Surprisingly, we prove that there is a simple characterization which is the following: A subjoin is safe if and only if there is a parse tree of the join (a.k.a. join tree) such that the relations in the subjoin form a subtree of it. We provide an algorithm that finds such a parse tree, if there is one.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
03/22/2022

Non-recursive Approach for Sort-Merge Join Operation

Several algorithms have been developed over the years to perform join op...
research
04/03/2023

Guaranteeing the Õ(AGM/OUT) Runtime for Uniform Sampling and OUT Size Estimation over Joins

We propose a new method for estimating the number of answers OUT of a sm...
research
04/01/2022

Givens QR Decomposition over Relational Databases

This paper introduces Figaro, an algorithm for computing the upper-trian...
research
10/26/2022

Quantifying the Loss of Acyclic Join Dependencies

Acyclic schemas possess known benefits for database design, speeding up ...
research
09/20/2020

Consistency, Acyclicity, and Positive Semirings

In several different settings, one comes across situations in which the ...
research
03/22/2019

Instance and Output Optimal Parallel Algorithms for Acyclic Joins

Massively parallel join algorithms have received much attention in recen...
research
08/20/2021

Safe Transformative AI via a Windfall Clause

Society could soon see transformative artificial intelligence (TAI). Mod...

Please sign up or login with your details

Forgot password? Click here to reset