Is it Bigger than a Breadbox: Efficient Cardinality Estimation for Real World Workloads
Zixuan Yi, Sami Abu-El-Haija, Teja Vemparala, Yawen Wang, Yannis Chronis, Yu Gan, Michael Burrows, Carsten Binnig, Bryan Perozzi, Ryan Marcus, Fatma Ozcan
ICLR 2026 submission
Abstract. DB engines produce efficient query plans by relying on cost models, that estimate cardinalities of subqueries constituting the input query. Standard cardinality estimators rely on heuristics, with magic numbers tuned to improve average performance on benchmarks. Empirically, their estimation error increases with query complexity. Recently, learning-based neural estimators have been proposed. However, they are not adopted in-practice, due to added operational complexity. Training or tuning generally requires extracting or simulating training data, from database contents or sample queries. Rather than learning one monolithic network, we are motivated to capture the common practical scenario: query patterns repeatedly re-appear soon after their first introduction. We propose LITECARD, that online-learns many (simple) regressors, one per subquery pattern. The regressor corresponding to a pattern can be randomly-accessed using hash of directed acyclic graph encoding the subquery. LITECARD instantiates from cold-start, imposing negligible overhead, while competing with SoTA neural approaches on error metrics. More importantly, implementing LITECARD into PostgreSQL reduces query execution time by 30% of popular JOB-lite workload on IMDb, while incurring negligible overhead (37 seconds) for online learning. By achieving notable accuracy and runtime improvements over standard methods, and drastically reduces operational costs compared to neural estimators, LITECARD pushes Pareto frontiers balancing execution speedups and overhead time.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperadd · history
Loading the discussion…