arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.11210cs.DBcs.DS
收藏

支持高效批量驱逐与插入的乱序滑动窗口聚合(扩展版)

Out-of-Order Sliding-Window Aggregation with Efficient Bulk Evictions and Insertions (Extended Version)

Kanat Tangwongsan, Martin Hirzel, Scott Schneider

AI总结:

针对乱序且突发的数据流,本文提出支持批量驱逐与批量插入的滑动窗口聚合算法,在理论复杂度和实际性能上均优于现有或朴素方法。

摘要:

滑动窗口聚合是一种基础流处理原语,可高效汇总近期数据。当流数据项一次一个地被驱逐或插入时,即使部分插入以乱序方式发生,最先进的滑动窗口聚合算法也具有很高效率。然而,现实世界中的流通常不仅是乱序的,而且具有突发性,导致数据项以较大批量被驱逐或插入。本文提出一种支持批量驱逐和批量插入的新型滑动窗口聚合算法。对于单次插入和驱逐的特殊情况,该算法在理论复杂度上与以往最佳乱序算法相当。对于批量驱逐情况,本文算法改进了该情形下以往最佳算法的理论复杂度,并在实践中表现更优。对于批量插入情况,此前尚无相关算法;本文算法在理论和实践上均优于通过循环执行单次插入来模拟批量插入的朴素方法。总体而言,本文通过高效处理普遍存在的乱序数据和突发情况,使高性能滑动窗口聚合算法具有更广泛的适用性。

英文摘要:

Sliding-window aggregation is a foundational stream processing primitive that efficiently summarizes recent data. The state-of-the-art algorithms for sliding-window aggregation are highly efficient when stream data items are evicted or inserted one at a time, even when some of the insertions occur out-of-order. However, real-world streams are often not only out-of-order but also burtsy, causing data items to be evicted or inserted in larger bulks. This paper introduces a new algorithm for sliding-window aggregation with bulk eviction and bulk insertion. For the special case of single insert and evict, our algorithm matches the theoretical complexity of the best previous out-of-order algorithms. For the case of bulk evict, our algorithm improves upon the theoretical complexity of the best previous algorithm for that case and also outperforms it in practice. For the case of bulk insert, there are no prior algorithms, and our algorithm improves upon the naive approach of emulating bulk insert with a loop over single inserts, both in theory and in practice. Overall, this paper makes high-performance algorithms for sliding window aggregation more broadly applicable by efficiently handling the ubiquitous cases of out-of-order data and bursts.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑