Lune

VLDB2026顶会

Towards Efficient Random-Order Enumeration for Join Queries

Pengyu Chen, Zizheng Guo, Jianwei Yang, Dongjing Miao

摘要

In many data analysis pipelines, a basic and time-consuming process is to produce join results and feed them into downstream tasks. Numerous enumeration algorithms have been developed for this purpose. To be a statistically meaningful representation of the whole join result, the result tuples are required to be enumerated in uniformly random order. However, existing studies lack an efficient random-order enumeration algorithm with a worst-case runtime guarantee for (cyclic) join queries. In this paper, we study the problem of enumerating the results of a join query in random order. We develop an efficient random-order enumeration algorithm for join queries with no large hidden constants in its complexity, achieving expected O(AGM(Q)∣Res(Q)∣log⁡2∣Q∣)O(\frac{\mathrm{AGM}(Q)}{|Res(Q)|}\log^2|Q|) delay, O(AGM(Q)log⁡∣Q∣)O(\mathrm{AGM}(Q)\log|Q|) total running time after O(∣Q∣log⁡∣Q∣)O(|Q|\log|Q|)-time index construction, where ∣Q∣|Q| is the size of input, AGM(Q)\mathrm{AGM}(Q) is the AGM bound, and ∣Res(Q)∣|Res(Q)| is the size of the join result. We prove that our algorithm is near-optimal in the worst case, under the combinatorial kk-clique hypothesis. Our algorithm requires no query-specific preprocessing and can be flexibly adapted to many common database indexes with only minor modifications. We also devise two non-trivial techniques to speed up the enumeration, and provide an experimental study on our enumeration algorithm along with the speed-up techniques. The experimental results show that our algorithm, enhanced with the proposed techniques, significantly outperforms existing state-of-the-art methods.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

可以从这些问题问起

Lune 可以查阅

全文 · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

它引用的引用它的从左到右按年份排列,引用越多,位置越高。

它引用的 Paper1

  1. PGMJoins: Random Join Sampling with Graphical ModelsAli Mohammadi Shanghooshabad, Meghdad Kurmanji, Qingzhi Ma, Michael Shekelyan 等SIGMOD 2021 · 13 次引用

相关 Paper

  1. Ranked Enumeration of Join Queries with ProjectionsShaleen Deep, Xiao Hu, Paraschos KoutrisVLDB 2022 · 14 次引用
  2. Optimal Algorithms for Ranked Enumeration of Answers to Full Conjunctive QueriesNikolaos Tziavelis, Deepak Ajwani, Wolfgang Gatterbauer, Mirek Riedewald 等VLDB 2020 · 45 次引用
  3. Beyond Equi-joins: Ranking, Enumeration and FactorizationNikolaos Tziavelis, Wolfgang Gatterbauer, Mirek RiedewaldVLDB 2021 · 24 次引用
  4. Efficiently Computing Join Orders with Heuristic SearchImmanuel Haffner, Jens DittrichSIGMOD 2023 · 8 次引用
  5. Reservoir Sampling over JoinsBinyang Dai, Xiao Hu, Ke YiSIGMOD 2024 · 6 次引用
黄昏的海面,两侧是细线勾勒的悬崖