FactorJoin: A New Cardinality Estimation Framework for Join Queries
Not on the map. Why?
Abstract (arXiv)
Cardinality estimation is one of the most fundamental and challenging problems in query optimization. Neither classical nor learning-based methods yield satisfactory performance when estimating the cardinality of the join queries. They either rely on simplified assumptions leading to ineffective cardinality estimates or build large models to understand the data distributions, leading to long planning times and a lack of generalizability across queries. In this paper, we propose a new framework FactorJoin for estimating join queries. FactorJoin combines the idea behind the classical join-histogram method to efficiently handle joins with the learning-based methods to accurately capture attribute correlation. Specifically, FactorJoin scans every table in a DB and builds single-table conditional distributions during an offline preparation phase. When a join query comes, FactorJoin translates it into a factor graph model over the learned distributions to effectively and efficiently estimate its cardinality. Unlike existing learning-based methods, FactorJoin does not need to de-normalize joins upfront or require executed query workloads to train the model. Since it only relies on single-table statistics, FactorJoin has small space overhead and is extremely easy to train and maintain. In our evaluation, FactorJoin can produce more effective estimates than the previous state-of-the-art learning-based methods, with 40x less estimation latency, 100x smaller model size, and 100x faster training speed at comparable or better accuracy. In addition, FactorJoin can estimate 10,000 sub-plan queries within one second to optimize the query plan, which is very close to the traditional cardinality estimators in commercial DBMS.
Key facts. Cited by 13 papers in the map (data through 14 Oct 2026). Builds on 17 of its 79 references that are in the map. First posted on arXiv 11 Dec 2022.
Builds on
17 of 79 references.
References · 17
- 2019Neo: A Learned Query Optimizercited by 80
- 2018Learned Cardinalities: Estimating Correlated Joins with Deep Learningcited by 64
- 2019An End-to-End Learning-based Cost Estimatorcited by 43
- 2019Deep Unsupervised Cardinality Estimationcited by 36
- 2021Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluationcited by 30
- 2018Deep Reinforcement Learning for Join Order Enumerationcited by 25
- 2019Plan-Structured Deep Neural Network Models for Query Performance Predictioncited by 24
- 2020FLAT: Fast, Lightweight and Accurate Method for Cardinality Estimationcited by 22
- 2021Flow-Loss: Learning Cardinality Estimates That Mattercited by 22
- 2021A Unified Deep Model of Learning from both Data and Queries for Cardinality Estimationcited by 21
- 2017Size bounds and query plans for relational joinscited by 10
- 2021A Unified Transferable Model for ML-Enhanced DBMScited by 10
5 more
- 2021One Model to Rule them All: Towards Zero-Shot Learning for Databasescited by 9
- 2019Multi-Attribute Selectivity Estimation Using Deep Learningcited by 6
- 2019An Approach Based on Bayesian Networks for Query Selectivity Estimationcited by 6
- 2020FSPN: A New Class of Probabilistic Graphical Modelcited by 6
- 2016What do Shannon-type Inequalities, Submodular Width, and Disjunctive Datalog have to do with one another?cited by 1
Built on by
Citing papers per year: 2024: 3; 2025: 9; 2026: 1.
13 papers.
Sort:
- 2024PRICE: A Pretrained Model for Cross-Database Cardinality Estimationcited by 8
- 2024A Practical Theory of Generalization in Selectivity Learningcited by 3
- 2024GenJoin: Conditional Generative Plan-to-Plan Query Optimizer that Learns from Subplan Hintscited by 1
- 2025DistJoin: A Decoupled Join Cardinality Estimator based on Adaptive Neural Predicate Modulationcited by 1
- 2025Data-Agnostic Cardinality Learning from Imperfect Workloadscited by 1
- 2025Is it Bigger than a Breadbox: Efficient Cardinality Estimation for Real World Workloadscited by 1
- 2025Optimize Cardinality Estimation Model Pretraining by Simplifying the Training Datasetscited by 0
- 2025Sketched Sum-Product Networks for Joinscited by 0
- 2025A Lightweight Learned Cardinality Estimation Modelcited by 0
- 2025ZeroCard: Cardinality Estimation with Zero Dependence on Target Databases -- No Data, No Query, No Retrainingcited by 0
- 2025CoLSE: A Lightweight and Robust Hybrid Learned Model for Single-Table Cardinality Estimation using Joint CDFcited by 0
- 2025TiCard: Deployable EXPLAIN-only Residual Learning for Cardinality Estimationcited by 0
1 more
- 2026Towards Anticipatory Databases Through Shared Data and Workload Semantics13 Sep 2026
- 2025TiCard: Deployable EXPLAIN-only Residual Learning for Cardinality Estimation16 Dec 2025
- 2025CoLSE: A Lightweight and Robust Hybrid Learned Model for Single-Table Cardinality Estimation using Joint CDF14 Dec 2025
- 2025ZeroCard: Cardinality Estimation with Zero Dependence on Target Databases -- No Data, No Query, No Retraining9 Oct 2025
- 2025Is it Bigger than a Breadbox: Efficient Cardinality Estimation for Real World Workloads3 Oct 2025
- 2025A Lightweight Learned Cardinality Estimation Model13 Aug 2025
- 2025Data-Agnostic Cardinality Learning from Imperfect Workloads19 Jun 2025
- 2025Sketched Sum-Product Networks for Joins16 Jun 2025
- 2025DistJoin: A Decoupled Join Cardinality Estimator based on Adaptive Neural Predicate Modulation12 Mar 2025
- 2025Optimize Cardinality Estimation Model Pretraining by Simplifying the Training Datasets20 Feb 2025
- 2024GenJoin: Conditional Generative Plan-to-Plan Query Optimizer that Learns from Subplan Hints7 Nov 2024
- 2024A Practical Theory of Generalization in Selectivity Learning11 Sep 2024
1 more
- 2024PRICE: A Pretrained Model for Cross-Database Cardinality Estimationcited by 8
- 2024A Practical Theory of Generalization in Selectivity Learningcited by 3
- 2024GenJoin: Conditional Generative Plan-to-Plan Query Optimizer that Learns from Subplan Hintscited by 1
- 2025DistJoin: A Decoupled Join Cardinality Estimator based on Adaptive Neural Predicate Modulationcited by 1
- 2025Data-Agnostic Cardinality Learning from Imperfect Workloadscited by 1
- 2025Is it Bigger than a Breadbox: Efficient Cardinality Estimation for Real World Workloadscited by 1
- 2025Optimize Cardinality Estimation Model Pretraining by Simplifying the Training Datasetscited by 0
- 2025Sketched Sum-Product Networks for Joinscited by 0
- 2025A Lightweight Learned Cardinality Estimation Modelcited by 0
- 2025ZeroCard: Cardinality Estimation with Zero Dependence on Target Databases -- No Data, No Query, No Retrainingcited by 0
- 2025CoLSE: A Lightweight and Robust Hybrid Learned Model for Single-Table Cardinality Estimation using Joint CDFcited by 0
- 2025TiCard: Deployable EXPLAIN-only Residual Learning for Cardinality Estimationcited by 0
12 most cited of 13 All 13 (JSON)
- 2026Towards Anticipatory Databases Through Shared Data and Workload Semantics13 Sep 2026
- 2025TiCard: Deployable EXPLAIN-only Residual Learning for Cardinality Estimation16 Dec 2025
- 2025CoLSE: A Lightweight and Robust Hybrid Learned Model for Single-Table Cardinality Estimation using Joint CDF14 Dec 2025
- 2025ZeroCard: Cardinality Estimation with Zero Dependence on Target Databases -- No Data, No Query, No Retraining9 Oct 2025
- 2025Is it Bigger than a Breadbox: Efficient Cardinality Estimation for Real World Workloads3 Oct 2025
- 2025A Lightweight Learned Cardinality Estimation Model13 Aug 2025
- 2025Data-Agnostic Cardinality Learning from Imperfect Workloads19 Jun 2025
- 2025Sketched Sum-Product Networks for Joins16 Jun 2025
- 2025DistJoin: A Decoupled Join Cardinality Estimator based on Adaptive Neural Predicate Modulation12 Mar 2025
- 2025Optimize Cardinality Estimation Model Pretraining by Simplifying the Training Datasets20 Feb 2025
- 2024GenJoin: Conditional Generative Plan-to-Plan Query Optimizer that Learns from Subplan Hints7 Nov 2024
- 2024A Practical Theory of Generalization in Selectivity Learning11 Sep 2024
12 newest of 13 All 13 (JSON)