<scp>LpBound</scp> : Pessimistic Cardinality Estimation Using ℓ <sub>p</sub> -Norms of Degree Sequences

Cardinality estimation is the problem of estimating the size of the output of a query, without actually evaluating the query. The cardinality estimator is a critical piece of a query optimizer, and is often the main culprit when the optimizer chooses a poor plan. This paper introduces LpBound, a pessimistic cardinality estimator for multi-join queries (acyclic or cyclic) with selection predicates and group-by clauses. LpBound computes a guaranteed upper bound on the size of the query output using simple statistics on the input relations, consisting of ℓ p -norms of degree sequences. The bound is the optimal solution of a linear program whose constraints encode data statistics and Shannon inequalities. We introduce two optimizations that exploit the structure of the query in order to speed up the estimation time and make LpBound practical. We experimentally evaluate LpBound against a range of traditional, pessimistic, and machine learning-based estimators on the JOB, STATS, and subgraph matching benchmarks. Our main finding is that LpBound can be orders of magnitude more accurate than traditional estimators used in mainstream open-source and commercial database systems. Yet it has comparable low estimation time and space requirements. When injected the estimates of LpBound , Postgres derives query plans at least as good as those derived using the true cardinalities.

Authors

Institutions

Publication Details

Journal
Proceedings of the ACM on Management of Data
Published
2025-06-17
DOI
https://doi.org/10.1145/3725321
Citations
4
Primary Topic
Advanced Database Systems and Queries
Type
article
Field-Weighted Citation Impact
5.95

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

LpBound : Pessimistic Cardinality Estimation Using ℓ p -Norms of Degree Sequences

Mahmoud Abo Khamis, Dan Olteanu, Dan Suciu, Haozhe Zhang et al.
4 citations
Proceedings of the ACM on Management of Data
Advanced Database Systems and Queries
5.95
article

LpBound : Pessimistic Cardinality Estimation Using ℓ p -Norms of Degree Sequences

Mahmoud Abo Khamis, Dan Olteanu, Dan Suciu, Haozhe Zhang, Carl Mayer
article en
4 citations

Abstract

Cardinality estimation is the problem of estimating the size of the output of a query, without actually evaluating the query. The cardinality estimator is a critical piece of a query optimizer, and is often the main culprit when the optimizer chooses a poor plan. This paper introduces LpBound, a pessimistic cardinality estimator for multi-join queries (acyclic or cyclic) with selection predicates and group-by clauses. LpBound computes a guaranteed upper bound on the size of the query output using simple statistics on the input relations, consisting of ℓ p -norms of degree sequences. The bound is the optimal solution of a linear program whose constraints encode data statistics and Shannon inequalities. We introduce two optimizations that exploit the structure of the query in order to speed up the estimation time and make LpBound practical. We experimentally evaluate LpBound against a range of traditional, pessimistic, and machine learning-based estimators on the JOB, STATS, and subgraph matching benchmarks. Our main finding is that LpBound can be orders of magnitude more accurate than traditional estimators used in mainstream open-source and commercial database systems. Yet it has comparable low estimation time and space requirements. When injected the estimates of LpBound , Postgres derives query plans at least as good as those derived using the true cardinalities.

Proceedings of the ACM on Management of DataVol. 3(3)
University of Washington (US), University of Zurich (CH)
Schweizerischer Nationalfonds zur Förderung der Wissenschaftlichen Forschung
No poverty
Openalex Percentile: Top 4%
Advanced Database Systems and Queries
5.95
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

<scp>LpBound</scp> : Pessimistic Cardinality Estimation Using ℓ <sub>p</sub> -Norms of Degree Sequences — Mahmoud Abo Khamis, Dan Olteanu, et al. · Proceedings of the ACM on Management of Data (2025) | TGRS Research Map | TGRS