Support Aggregate Analytic Window Function over Large Data by Spilling
Xing Shi, Chao Wang

TL;DR
This paper introduces an algorithm to efficiently manage large window function states by spilling to disk, reducing I/O overhead in cloud and machine learning data processing environments.
Contribution
It presents a novel algorithm for spilling analytic window function states to disk, optimizing performance for large data windows in SQL databases.
Findings
Reduces disk I/O during spilling of large window states
Analyzes algorithm complexity under various data distributions
Improves efficiency of window function processing in large-scale data systems
Abstract
Analytic function, also called window function, is to query the aggregation of data over a sliding window. For example, a simple query over the online stock platform is to return the average price of a stock of the last three days. These functions are commonly used features in SQL databases. They are supported in most of the commercial databases. With the increasing usage of cloud data infra and machine learning technology, the frequency of queries with analytic window functions rises. Some analytic functions only require const space in memory to store the state, such as SUM, AVG, while others require linear space, such as MIN, MAX. When the window is extremely large, the memory space to store the state may be too large. In this case, we need to spill the state to disk, which is a heavy operation. In this paper, we proposed an algorithm to manipulate the state data in the disk to reduce…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
