Weighted Distinct Sampling: Cardinality Estimation for SPJ Queries

Author(s):  
Yuan Qiu ◽  
Yilei Wang ◽  
Ke Yi ◽  
Feifei Li ◽  
Bin Wu ◽  
...  
2015 ◽  
Vol 40 (3) ◽  
pp. 1-41 ◽  
Author(s):  
Florin Rusu ◽  
Zixuan Zhuang ◽  
Mingxi Wu ◽  
Chris Jermaine

2017 ◽  
Vol 11 (4) ◽  
pp. 499-512 ◽  
Author(s):  
Hazar Harmouch ◽  
Felix Naumann

Author(s):  
Jintao Gao ◽  
Zhanhuai Li ◽  
Wenjie Liu

Cardinality estimation is an important component of query optimization. Its accuracy and efficiency directly decide effect of query optimization. Traditional cardinality estimation strategy is based on original table or sample to collect statistics, then inferring cardinality by collected statistics. It will be low-efficiency when handling big data; Statistics exist update latency and are gotten by inferring, which can not guarantee correctness; Some strategies can get the actual cardinality by executing some subqueries, but they do not keep the result, leading to low efficiency of fetching statistics. Against these problems, this paper proposes a novel cardinality estimation strategy, called cardinality estimation based on query result(CEQR). For keeping correctness of cardinality, CEQR directly gets statistics from query results, which is not related with data size; we build a cardinality table to store the statistics of basic tables and middle results under specific predicates. Cardinality table can provide cardinality services for subsequent queries, and we build a suit of rules to maintain cardinality table; To improve the efficiency of fetching statistics, we introduce the source aware strategy, which hashes cardinality item to appropriate cache. This paper gives the adaptability and deviation analytic of CEQR, and proves that CEQR is more efficient than traditional cardinality estimation strategy by experiments.


2019 ◽  
Vol 13 (3) ◽  
pp. 279-292 ◽  
Author(s):  
Zongheng Yang ◽  
Eric Liang ◽  
Amog Kamsetty ◽  
Chenggang Wu ◽  
Yan Duan ◽  
...  

2016 ◽  
Vol 194 ◽  
pp. 107-116 ◽  
Author(s):  
Jingsong Shan ◽  
Jianxin Luo ◽  
Guiqiang Ni ◽  
Zhaofeng Wu ◽  
Weiwei Duan

Sign in / Sign up

Export Citation Format

Share Document