Sidorenko-Inspired Pessimistic Estimation

Abstract

Recently, Abo Khamis et al. showed how to upper bound the size of a join of multiple tables, a problem essential to query optimization in database theory. They unified earlier works by the following information-theoretical framework. 1. Let (X1,..., Xn) be a row selected from the join uniformly at random. 2. The size of the join is now (H(X1,..., Xn)). 3. To upper bound H(X1,..., Xn), break it into several local entropies, such as H(X1), H(X2, X3), and H(X4|X5), using Shannon-type inequalities. 4. Upper bound local entropies using statistics of the tables being joined. The statistics Abo Khamis et al. considered are the counts of graph homomorphisms from stars to the tables. In a follow-up work, we generalized stars to bi-stars. In this paper, we generalize bi-stars to caterpillars, an even larger class of graphs inspired by Sidorenko's conjecture. Simulations show that, while Abo Khamis et al.'s star bound overestimates the join size by m, our bi-star bound overestimates by about m3/4, and this paper's new caterpillar bound overestimates by about m3/5. These exponents are obtained by log-log regressions with R-square > 0.98. All homomorphisms are counted in time linear in the size of the tables being joined.

0

Turn this paper into a lesson

ArcXiv compiles a structured reading guide from this paper's metadata: plain-English importance, contributions, prerequisite concepts, which sections to read first, flashcards, and a quiz. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…