Updateable Data-Driven Cardinality Estimator with Bounded Q-error

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Li, Yingze, Liu, Xianglong, Wang, Hongzhi, Zhang, Kaixin, Wang, Zixuan
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866913486620065792
author Li, Yingze
Liu, Xianglong
Wang, Hongzhi
Zhang, Kaixin
Wang, Zixuan
author_facet Li, Yingze
Liu, Xianglong
Wang, Hongzhi
Zhang, Kaixin
Wang, Zixuan
contents Modern Cardinality Estimators struggle with data updates. This research tackles this challenge within single-table. We introduce ICE, an Index-based Cardinality Estimator, the first data-driven estimator that enables instant, tuple-leveled updates. ICE has learned two key lessons from the multidimensional index and applied them to solve cardinality estimation in dynamic scenarios: (1) Index possesses the capability for swift training and seamless updating amidst vast multidimensional data. (2) Index offers precise data distribution, staying synchronized with the latest database version. These insights endow the index with the ability to be a highly accurate, data-driven model that rapidly adapts to data updates and is resilient to out-of-distribution challenges during query testing. To make a solitary index support cardinality estimation, we have crafted sophisticated algorithms for training, updating, and estimating, analyzing unbiasedness and variance. Extensive experiments demonstrate the superiority of ICE. ICE offers precise estimations and fast updates/construction across diverse workloads. Compared to state-of-the-art real-time query-driven models, ICE boasts superior accuracy (2-3 orders of magnitude more precise), faster updates (4.7-6.9 times faster), and significantly reduced training time (up to 1-3 orders of magnitude faster).
format Preprint
id arxiv_https___arxiv_org_abs_2408_17209
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Updateable Data-Driven Cardinality Estimator with Bounded Q-error
Li, Yingze
Liu, Xianglong
Wang, Hongzhi
Zhang, Kaixin
Wang, Zixuan
Databases
Modern Cardinality Estimators struggle with data updates. This research tackles this challenge within single-table. We introduce ICE, an Index-based Cardinality Estimator, the first data-driven estimator that enables instant, tuple-leveled updates. ICE has learned two key lessons from the multidimensional index and applied them to solve cardinality estimation in dynamic scenarios: (1) Index possesses the capability for swift training and seamless updating amidst vast multidimensional data. (2) Index offers precise data distribution, staying synchronized with the latest database version. These insights endow the index with the ability to be a highly accurate, data-driven model that rapidly adapts to data updates and is resilient to out-of-distribution challenges during query testing. To make a solitary index support cardinality estimation, we have crafted sophisticated algorithms for training, updating, and estimating, analyzing unbiasedness and variance. Extensive experiments demonstrate the superiority of ICE. ICE offers precise estimations and fast updates/construction across diverse workloads. Compared to state-of-the-art real-time query-driven models, ICE boasts superior accuracy (2-3 orders of magnitude more precise), faster updates (4.7-6.9 times faster), and significantly reduced training time (up to 1-3 orders of magnitude faster).
title Updateable Data-Driven Cardinality Estimator with Bounded Q-error
topic Databases
url https://arxiv.org/abs/2408.17209