Reproduce “ByteCard: Enhancing ByteDance's Data Warehouse with Learned Cardinality Estimation” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Yuxing Han, Haoyu Wang, Lixiang Chen, Yifeng Dong, Xing Chen, Benquan Yu, Chengcheng Yang, Weining Qian
ByteCard integrates a framework for learning-based cardinality estimators, specifically Bayesian Networks, FactorJoin, and RBX, into ByteDance's large-scale ByteHouse data warehouse. This enhances query optimization, leading to significant improvements in end-to-end query latency, reduced I/O operations, and more efficient memory management.
Key insights
- Successfully deploying learning-based models in a production data warehouse necessitates balancing accuracy with practical constraints such as inference latency, model size, and training overhead.
- A modular architecture, separating model training (ModelForge Service) from inference (Inference Engine), is essential for continuous model updates and stable, high-concurrency query processing.
- Specific optimization techniques like Root Identification, CPD Indexing, Join-Bucket Construction, and Distribution-Dimension Reduction are vital for ensuring efficient, concurrent inference of chosen models.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.