Affiliation:
1. Imperial College London, London, United Kingdom
Abstract
Data stream processing systems enable querying over sliding windows of streams of data. Efficient index structures for the streaming window are a crucial building block to enable querying the sliding window for operations such as aggregation and joins. This paper proposes SWIX, a novel memory-efficient learned index for sliding windows. Unlike conventional learned indexes that rely on tree structures to achieve logarithmic query cost, SWIX has a flat structure that uses substantially less memory and enables efficient query execution while having a low cost for index maintenance when inserting (and retraining). SWIX dynamically adapts itself to the real-time distribution shifts of data streams.
SWIX outperforms existing indexes in terms of query execution time and memory footprint for workloads characterized by very frequent updates. Our results show that SWIX has a significantly smaller memory footprint than conventional, streaming, and learned indexes, using only 22% to 42% of the size compared to state-of-the-art approaches, yet outperforming them by up 1.2× to 1.6× on average (and up to 52×) in terms of query time, making it a space- and time-efficient method for indexing data streams. For concurrent learned indexes, Parallel SWIX can achieve up to 3.45× throughput with only 34% of memory consumption.
Funder
National Agency for Research and Development
Publisher
Association for Computing Machinery (ACM)
Reference47 articles.
1. High Frequency Trading with Complex Event Processing
2. A New Look at the Statistical Model Identification
3. Daniel Berjón, Guillermo Gallego, Carlos Cuevas, Francisco Morán, and Narciso Garc'ia. 2015. Optimal piecewise linear function approximation for GPU-based applications. IEEE transactions on cybernetics, Vol. 46, 11 (2015), 2584--2595.
4. bingmann. 2019. STX-BTree. https://github.com/bingmann/stx-btree Last Accessed: 2023--12--28.
5. HOT