Out-of-Order Sliding-Window Aggregation with Efficient Bulk Evictions and Insertions
Kanat Tangwongsan, Martin Hirzel, Scott Schneider
Abstract
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 bursty, 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.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 3bbc1c28-2c5b-4cb8-ad12-55a821fc9126Builds on2
- LightSaber: Efficient Window Aggregation on Multi-core ProcessorsGeorgios Theodorakis, Alexandros Koliousis, Peter R. Pietzuch, Holger PirkSIGMOD 2020 · 36 citations
- To Share, or not to Share Online Event Trend Aggregation Over Bursty Event StreamsOlga Poppe, Chuan Lei, Lei Ma, Allison Rozet et al.SIGMOD 2021 · 13 citations
Related papers
- Efficient Incremental Computation of Aggregations over Sliding WindowsChao Zhang, Reza Akbarinia, Farouk ToumaniKDD 2021 · 11 citations
- Improved Sliding Window Algorithms for Clustering and Coverage via Bucketing-Based SketchesAlessandro Epasto, Mohammad Mahdian, Vahab S. Mirrokni, Peilin ZhongSODA 2022 · 6 citations
- SWIX: A Memory-efficient Sliding Window Learned IndexLiang Liang, Guang Yang, Ali Hadian, Luis Alberto Croquevielle et al.SIGMOD 2024 · 5 citations
- Sliding Sketches: A Framework using Time Zones for Data Stream Processing in Sliding WindowsXiangyang Gou, Long He, Yinda Zhang, Ke Wang et al.KDD 2020 · 53 citations
- OmniSketch: Efficient Multi-Dimensional High-Velocity Stream Analytics with Arbitrary PredicatesWieger R. Punter, Odysseas Papapetrou, Minos N. GarofalakisVLDB 2024 · 10 citations
