Selectivity Estimation of Inequality Joins in Databases

被引:1
|
作者
Repas, Diogo [1 ]
Luo, Zhicheng [1 ]
Schoemans, Maxime [1 ]
Sakr, Mahmoud [1 ,2 ]
机构
[1] Univ libre Bruxelles ULB, Data Sci Lab, B-1050 Brussels, Belgium
[2] Ain Shams Univ, Fac Comp & Informat Sci, Cairo 11566, Egypt
关键词
SQL; query optimization; optimizer statistics;
D O I
10.3390/math11061383
中图分类号
O1 [数学];
学科分类号
0701 ; 070101 ;
摘要
Selectivity estimation refers to the ability of the SQL query optimizer to estimate the size of the results of a predicate in the query. It is the main calculation based on which the optimizer can select the least expensive plan to execute. While the problem has been known since the mid-1970s, we were surprised that there are no solutions in the literature for the selectivity estimation of inequality joins. By testing four common database systems: Oracle, SQL-Server, PostgreSQL, and MySQL, we found that the open-source systems PostgreSQL and MySQL lack this estimation. Oracle and SQL-Server make fairly accurate estimations, yet their algorithms are secret. This paper, thus, proposes an algorithm for inequality join selectivity estimation. The proposed algorithm was implemented in PostgreSQL and sent as a patch to be included in the next releases. We compared this implementation with the above DBMS for three different data distributions (uniform, normal, and Zipfian) and showed that our algorithm provides extremely accurate estimations (below 0.1% average error), outperforming the other systems by an order of magnitude.
引用
收藏
页数:18
相关论文
共 50 条
  • [41] Generalized substring selectivity estimation
    Chen, ZY
    Korn, F
    Koudas, N
    Muthukrishnan, S
    JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 2003, 66 (01) : 98 - 132
  • [42] AN EXTENSIBLE MODEL OF SELECTIVITY ESTIMATION
    MANNINO, MV
    RIVERA, A
    INFORMATION SCIENCES, 1989, 49 (1-3) : 225 - 247
  • [43] A hybrid estimator for selectivity estimation
    Ling, YB
    Sun, W
    Rishe, ND
    Xiang, XJ
    IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, 1999, 11 (02) : 338 - 354
  • [44] Selectivity estimation for XML twigs
    Polyzotis, N
    Garofalakis, M
    Ioannidis, Y
    20TH INTERNATIONAL CONFERENCE ON DATA ENGINEERING, PROCEEDINGS, 2004, : 264 - 275
  • [45] Selectivity Estimation in Spatial Networks
    Tiakas, E.
    Papadopoulos, A. N.
    Nanopoulos, A.
    Manolopoulos, Y.
    APPLIED COMPUTING 2008, VOLS 1-3, 2008, : 852 - 856
  • [46] Construction of Databases for Small Area Estimation
    Berg, Emily
    JOURNAL OF OFFICIAL STATISTICS, 2022, 38 (03) : 673 - 708
  • [47] Practical throughput estimation for parallel databases
    Zhou, SY
    Williams, MH
    Taylor, H
    SOFTWARE ENGINEERING JOURNAL, 1996, 11 (04): : 255 - 263
  • [48] CARDINALITY ESTIMATION IN NUMERIC ONLINE DATABASES
    JARVELIN, K
    INFORMATION PROCESSING & MANAGEMENT, 1986, 22 (06) : 523 - 548
  • [49] THE ESTIMATION AND INTERPOLATION OF INEQUALITY MEASURES
    COWELL, FA
    MEHTA, F
    REVIEW OF ECONOMIC STUDIES, 1982, 49 (02): : 273 - 290
  • [50] A MOMENT INEQUALITY FOR LQ ESTIMATION
    JOHNSTONE, IM
    STATISTICS & PROBABILITY LETTERS, 1991, 12 (04) : 289 - 290