Trie Joins中的灵活缓存
Flexible Caching in Trie Joins
摘要:
传统的多路连接计算算法基于重写连接顺序和合并中间子查询的结果。最近,已经提出了几种方法的算法是“最坏情况下的最佳”,其中所有的关系被同时扫描。Veldhuizen的Leapfrog Trie Join(LFTJ)。LFTJ的一个重要优点是内存占用小,因为中间结果是可以立即转储的完整元组。然而,由于该算法不存储中间结果,因此必须从源关系重建循环连接,从而导致过多的内存流量。在本文中,我们解决这个问题,将缓存到LFTJ。我们通过采用连接优化的最新发展,将变量排序与树分解联系起来来做到这一点。虽然传统的使用树分解提前计算每个包的结果,我们提出的方法将缓存直接到LFTJ,可以动态调整缓存的大小。因此,我们的解决方案平衡了内存使用和重复计算,正如我们在SNAP数据集上的实验所证实的那样。
英文摘要:
Traditional algorithms for multiway join computation are based on rewriting the order of joins and combining results of intermediate subqueries. Recently, several approaches have been proposed for algorithms that are "worst-case optimal" wherein all relations are scanned simultaneously. An example is Veldhuizen's Leapfrog Trie Join (LFTJ). An important advantage of LFTJ is its small memory footprint, due to the fact that intermediate results are full tuples that can be dumped immediately. However, since the algorithm does not store intermediate results, recurring joins must be reconstructed from the source relations, resulting in excessive memory traffic. In this paper, we address this problem by incorporating caches into LFTJ. We do so by adopting recent developments on join optimization, tying variable ordering to tree decomposition. While the traditional usage of tree decomposition computes the result for each bag in advance, our proposed approach incorporates caching directly into LFTJ and can dynamically adjust the size of the cache. Consequently, our solution balances memory usage and repeated computation, as confirmed by our experiments over SNAP datasets.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。