Wander Join: Online Aggregation via Random Walks

被引:94
作者
Li, Feifei [1 ]
Wu, Bin [2 ]
Yi, Ke [2 ]
Zhao, Zhuoyue [3 ]
机构
[1] Univ Utah, Salt Lake City, UT 84112 USA
[2] Hong Kong Univ Sci & Technol, Hong Kong, Hong Kong, Peoples R China
[3] Shanghai Jiao Tong Univ, Shanghai, Peoples R China
来源
SIGMOD'16: PROCEEDINGS OF THE 2016 INTERNATIONAL CONFERENCE ON MANAGEMENT OF DATA | 2016年
基金
美国国家科学基金会;
关键词
D O I
10.1145/2882903.2915235
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Joins are expensive, and online aggregation over joins was proposed to mitigate the cost, which offers users a nice and flexible tradeoff between query efficiency and accuracy in a continuous, online fashion. However, the state-of-the-art approach, in both internal and external memory, is based on ripple join, which is still very expensive and even needs unrealistic assumptions (e.g., tuples in a table are stored in random order). This paper proposes a new approach, the wander join algorithm, to the online aggregation problem by performing random walks over the underlying join graph. We also design an optimizer that chooses the optimal plan for conducting the random walks without having to collect any statistics a priori. Compared with ripple join, wander join is particularly efficient for equality joins involving multiple tables, but also supports theta-joins. Selection predicates and group-by clauses can be handled as well. Extensive experiments using the TPC-H benchmark have demonstrated the superior performance of wander join over ripple join. In particular, we have integrated and tested wander join in the latest version of PostgreSQL, demonstrating its practicality in a full-fledged database system.
引用
收藏
页码:615 / 629
页数:15
相关论文
共 52 条
  • [1] Agarwal S., SIGMOD, P481
  • [2] Agarwal Sameer, 2012, P VLDB ENDOWMENT, V5
  • [3] [Anonymous], P ACM SIGMOD INT C M
  • [4] [Anonymous], 2006, Proceedings of the 12th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, DOI 10.1145/1150402.1150501
  • [5] [Anonymous], 2013, P 8 ACM EUR C COMP S
  • [6] [Anonymous], 2009, SAMPLING DESIGN ANAL
  • [7] [Anonymous], 1993, THESIS
  • [8] [Anonymous], 2014, P 11 USENIX C NETW S
  • [9] [Anonymous], 2006, ICDE
  • [10] [Anonymous], 2001, STAT INFERENCE